View source: R/coverage_plot.R
autoplot.filled_trait | R Documentation |
Function calculates the trait coverage of the community for each level of the sampling hierarchy and makes a barplot.
Shows at which level the data are coming from in each plot.
## S3 method for class 'filled_trait'
autoplot(object, other_col_how, ...)
object |
output from |
other_col_how |
what to do with the other columns in other data.
Options are to |
... |
optional filters for use with |
a ggplot2 plot
require("ggplot2")
data(community)
data(trait)
filled_traits <- trait_fill(
comm = community, traits = trait,
scale_hierarchy = c("Site", "PlotID"),
taxon_col = "Taxon", value_col = "Value",
trait_col = "Trait", abundance_col = "Cover"
)
autoplot(filled_traits)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.