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 filled_trait
autoplot(object, other_col_how, ...)

Arguments

object

output from trait_fill().

other_col_how

what to do with the other columns in other data. Options are to filter by one of the columns, add them to the x-axis, facet by them, or to ignore.

...

optional filters for use with other_col_how = "filter"

Value

a ggplot2 plot

Examples

require("ggplot2")
#> Loading required package: 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)