matrix2XY | R Documentation |
This function takes a matrix or data frame representing the presence/absence of species in different sets and converts it into a data frame where each row represents a terminal taxon and its corresponding area.
matrix2XY(distribution = distribution)
distribution |
A matrix or data frame representing the presence/absence of species in different sets. Rows represent sets and columns represent species. |
A data frame with two columns: "Terminal" (the species name) and "Area" (the area where the species is present).
# Convert distribution matrix to data frame
xy_df <- matrix2XY(distribution = distribution)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.