plot_taxa_shared_sites | R Documentation |
Plot number of unique taxa shared across sites
plot_taxa_shared_sites(data, id = NA_character_, observation = NULL)
data |
(list or tbl_df, tbl, data.frame) The dataset object returned by |
id |
(character) Identifier of dataset to be used in plot subtitles. Is automatically assigned when |
observation |
(tbl_df, tbl, data.frame) DEPRECATED: Use |
The data
parameter accepts a range of input types but ultimately requires the 9 columns of the observation table.
(gg, ggplot) A gg, ggplot object if assigned to a variable, otherwise a plot to your active graphics device
## Not run:
# Read a dataset of interest
dataset <- read_data("edi.193.5")
# Plot the dataset
plot_taxa_shared_sites(dataset)
# Flatten the dataset, manipulate, then plot
dataset %>%
flatten_data() %>%
dplyr::filter(lubridate::as_date(datetime) > "2003-07-01") %>%
dplyr::filter(as.numeric(location_id) > 4) %>%
plot_taxa_shared_sites()
# Plot from the observation table directly
plot_taxa_shared_sites(dataset$tables$observation)
## End(Not run)
# Plot the example dataset
plot_taxa_shared_sites(ants_L1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.