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)
Run the code above in your browser using DataLab