View source: R/server_ggplot.R
stacked_composition_bar_chart | R Documentation |
Create a stacked bar chart, with optional settings for percentage (or not) and wrap (or not) modes.
stacked_composition_bar_chart(
df,
x,
color,
id,
facet_name_var = rlang::sym("VIS_Groep_naam"),
percentage = FALSE,
wrap = FALSE
)
df |
The data frame used to create the plot. |
x |
The variable used on the x-axis of the plot. |
color |
The variable used to color the points or bars in the plot. |
id |
The identifier for selecting the data frame source. |
facet_name_var |
The name of the variable used for facet wrapping. |
percentage |
Logical indicating whether to create a plot in percentage mode. |
wrap |
Logical indicating whether to use facet wrapping. |
A ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.