bar_stacked_horizontal | R Documentation |
Stacked Bar Chart
bar_stacked_horizontal( smry_data, x, y, variable, categories = c("Erecto", "Semi-erecto", "Decumbente", "Postrado", "Semi-arrosetado", "Arrosetado"), color_categories = c("#BADF26", "#5CC665", "#22A385", "#297C8D", "#3B548A", "#472576") )
smry_data |
summary data |
x |
group variable |
y |
freq or count variable |
variable |
variable or trait |
categories |
vector of categories |
color_categories |
color for each category |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.