AntClassify

R-CMD-check

AntClassify is an R package designed to standardize ant community analyses, particularly for Neotropical and Brazilian Atlantic Forest assemblages. It automates:

By automating these tasks, AntClassify reduces manual effort and increases reproducibility, making it a practical tool for researchers working with ant assemblages.

Installation

You can install the development version of AntClassify from GitHub:

# install.packages("remotes")
remotes::install_github("cogdebora/AntClassify")

Once the package is accepted on CRAN, you will also be able to install it with:

install.packages("AntClassify")

Example

Below is a reproducible example using a standardized test dataset:

library(AntClassify)

# Create test dataset (same structure used in package tests)
ant_test_data <- data.frame(
  "Pheidole megacephala" = 10,
  "Strumigenys emmae" = 5,
  "Paratrechina longicornis" = 8,
  "Hypoponera leninei" = 3,
  "Camponotus fallatus" = 2,
  "Ectatomma brunneum" = 1,
  "Ectatomma permagnum" = 1,
  "Pheidole aberrans" = 1,
  "Pheidole fimbriata" = 1,
  "Pheidole obscurithorax" = 1,
  check.names = FALSE
)

# Run full pipeline
results <- antclassify(ant_test_data)

# View outputs
results$exotic$table
results$endemic$table
results$rarity$table

# Plot outputs
print(results$exotic$plot)
print(results$endemic$plot)
print(results$rarity$plot)

For more detailed examples and function documentation, see the package vignettes:

vignette("AntClassify")

Citation

If you use AntClassify in your research, please cite the following references:

Additionally, if you use the package itself, please cite: