rel_taxa() provides a quick way to get relative abundance based solely off observations. Note this approach does not consider the volume sampled in acquiring observations. To get a better quantitative estimate, use uvp_zoo_conc(). This function will work either for a single zoo_df for multiple provided as either a zoo_list or ecopart_obj.
Use with UVP Data:
For multiple casts:
To get the relative abundance of all living categories:
library(EcotaxaTools)rel_data <- ecopart_example |>mod_zoo(names_drop, drop_names ='not-living', drop_children = T) |>add_zoo(names_to, col_name ='name', new_names =c('Rhizaria', 'Copepoda', 'Chaetognatha', 'Eumalacostraca', 'living','Trichodesmium'), suppress_print = T) |>rel_taxa()# this produces a list for all casts with df of relative abundance# Single list element:rel_data[[1]]
Zooplankton data are stored in individual zoo_df by each cast. So to quickly visualize the relative abundance across all casts, casts must be combined into one. This is best done with merge_casts():