knitr::opts_chunk$set(echo = TRUE)
This is to demonstrate the use of biotaxa to explore whether there is a scale-free power law in taxonomic richnesses.
library(biotaxa) Arthropoda <- subset(data_m, Phyla == "Arthropoda") head(Arthropoda)
Find all of the classes of Mollusca
classes_msa <- unique(Arthropoda$Classes)
remove empty data
classes_msa <- as.character(classes_msa[classes_msa != ""]) classes_msa
Find the lower taxa (order) richness of each class in Mollusca
orders_distiller <- frequencyrank(classes_msa[1], "Order")[1] orders_distiller <- orders_distiller[orders_distiller != ""]
lower_taxa_richness <- function(taxa, rank) { dim(frequencyrank(taxa, rank))[1] }
tbl <- data.frame(mapply(lower_taxa_richness, orders_distiller, "Genus"))
Anton suggests to look at Amphipoda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.