Ecological Analysis and Visualization
Overview
Support ecological analyses such as ordination and clustering. Contains consistent and easy wrapper functions of 'stat', 'vegan', and 'labdsv' packages, and visualisation functions of ordination and clustering.
- 2026-10-05
- Added
twinspan(), a native R implementation of TWINSPAN (Hill 1979) and modified TWINSPAN (Roleček et al. 2009). It is written in plain R from the published description of the algorithm, and is not a port of the original FORTRAN program. The known differences from the original are listed in?twinspan, which also points to thetwinspanpackage of Oksanen for those who need the results of the original program. polish = "hill"(the default) follows the steps of Hill's program, and reproduces it exactly on thedune,sipoo,varespec,mite,BCIandpyrifosdata of 'vegan': the same groups of stands and of species, with the same numbers, divisions and eigenvalues, and on twenty randomly generated data sets.polish = "ecan"keeps the earlier way, written from the published description alone.
Show all changes in 0.3.0Hide the rest of the changes in 0.3.0
- Rare pseudospecies are downweighted in the ordination as the original does, which can be turned off with
downweight = FALSE. - Helpers:
pseudospecies(),tw_ra(),tw_downweight(),tw_inertia(),tw_preference(),tw_hill_const()andtw_two_way(). stats::as.hclust()converts the result so thatcls_color(),cls_add_group()andggdendro::ggdendrogram()can be used.- Bug fixes
shdi()gaveNaNforhwhen an abundance was zero. A zero is now read as an absent species, assalready did.ind_val()did not order its result at all. The species of a group are now given in decreasing order ofind.val.cls_add_group()turned every label intoNAwhen a single stand was missing fromdf. Only the labels of the missing stands areNAnow:pad2longest()no longer lets anNAdecide the width.dist2df()dropped a distance of zero between two different plots. It now drops the diagonal only.ordination()raised an unrelated error for an unknowno_method. It now names the method and lists the valid ones.ind_val()numbered the groups in the order in which they appeared indf. They now follow the levels of a factor, or the order ofsort()otherwise.ord_add_group()keeps the column named bygroup, even when that column is not one-to-multi toindiv.cols_one2multi()andselect_one2multi()spell their argumentinclude_self. The misspeltinculde_selfis still accepted.read_biss()joins the tables quietly, and its example reads a file bundled ininst/extdatainstead of a file on GitHub.twinspan(polish = "hill")takes the downweighting limits fromtw_hill_const()instead of the defaults oftw_downweight(). The values are the same, so the results do not change.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-20
- ERROR12 OK, 1 ERROR2026-08-18
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-05-21
Show 2 earlier changesHide 2 earlier changes
- ERROR12 OK, 1 ERROR2026-05-20
- OK14 OK2026-03-10
Documentation
- Help pages
- 21 (1 internal)
- Examples that run
- 37%7 run in a plain check · 12 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 95%
- Documented parameters
- 77%
- Return-value docs
- 100%
- Help pages citing references
- 5%
- TWINSPAN with ecan HTML
Downloads
Repository
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/matutosi/ecan on 2026-10-18.
GitHub Pages site last deployed 2026-10-05 · The repository has a site deploy workflow
pkgdown site last built 2026-10-05
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-08-17Seen in the repository: .claudeNamed in .Rbuildignore: .claudeCommits: at least 28 crediting it in the message
- Claude Opus 519 commits · Aug to Sep 2026
- Claude Opus 5.59 commits · Sep to Oct 2026
Dependencies
Installing ecan adds 38 packages (20 with compiled code, 41 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, dendextend 4.5 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.3.0Latest2026-10-05 · current release · diff ↗ ·
added 9 exports
pseudospecies, tw_downweight, tw_hill_const, tw_inertia, tw_preference, tw_ra, tw_species_data, tw_two_way, twinspan - 0.2.22026-08-22 · diff ↗
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- unarchivedReturned to CRAN2023-07-07
- 0.2.12023-07-07 · diff ↗
- archivedRemoved from CRAN2023-05-08requires archived package 'dave'
- RR 4.3.0 released · 2023-04-21
- 0.2.02023-03-23
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2023-03-23
- Total releases
- 4 / 3 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 113 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ecan")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.