Skip to content

Ecological Analysis and Visualization

0packages depend
7.2Kdownloads / year
93.1%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.3.0
  • 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 the twinspan package 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 the dune, sipoo, varespec, mite, BCI and pyrifos data 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() and tw_two_way().
  • stats::as.hclust() converts the result so that cls_color(), cls_add_group() and ggdendro::ggdendrogram() can be used.
  • Bug fixes
  • shdi() gave NaN for h when an abundance was zero. A zero is now read as an absent species, as s already did.
  • ind_val() did not order its result at all. The species of a group are now given in decreasing order of ind.val.
  • cls_add_group() turned every label into NA when a single stand was missing from df. Only the labels of the missing stands are NA now: pad2longest() no longer lets an NA decide 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 unknown o_method. It now names the method and lists the valid ones.
  • ind_val() numbered the groups in the order in which they appeared in df. They now follow the levels of a factor, or the order of sort() otherwise.
  • ord_add_group() keeps the column named by group, even when that column is not one-to-multi to indiv.
  • cols_one2multi() and select_one2multi() spell their argument include_self. The misspelt inculde_self is still accepted.
  • read_biss() joins the tables quietly, and its example reads a file bundled in inst/extdata instead of a file on GitHub.
  • twinspan(polish = "hill") takes the downweighting limits from tw_hill_const() instead of the defaults of tw_downweight(). The values are the same, so the results do not change.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.7 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.3.0
READMEYes · 194 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.3.0Citation fileNoWebsiteYes · pkgdown
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%
Vignettes (1)

Downloads

7.2K
CRAN downloads in the past year
Rank #7,955 · ~20/day · ~603/mo
Daily download trend is not available in this view yet.
44130 days
1.1K90 days
7.2K1 year
Compare downloads with other packages →
Also on82 r2u2 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-10-05 · Default branch at 0.3.0.9000, ahead of CRAN 0.3.0 (checked 2026-10-18)
Responsiveness
not measured
PracticesBeta

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.

Continuous integration (1)
GitHub Actions
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-05 · The repository has a site deploy workflow

pkgdown site last built 2026-10-05

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-08-17
    Seen in the repository: .claude
    Named in .Rbuildignore: .claude
    Commits: at least 28 crediting it in the message
Models named in its commits
  • Claude Opus 519 commits · Aug to Sep 2026
  • Claude Opus 5.59 commits · Sep to Oct 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.2.0 (2023)
Releases (4)

Pick two releases to compare their code metrics.

  • 0.3.0Latest
    record
    2026-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.2
    record
    2026-08-22 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • unarchivedReturned to CRAN
    2023-07-07
  • 0.2.1
    record
    2023-07-07 · diff ↗
  • archivedRemoved from CRAN
    2023-05-08
    requires archived package 'dave'
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.0
    record
    2023-03-23
  • R
    R 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")
Matsumura, T. (2026). ecan: Ecological Analysis and Visualization (Version 0.3.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ecan version 0.3.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy