View source: R/server_ggplot.R
wrapped_chart | R Documentation |
Wrapped chart function for creating a plot based on the provided dataframe and variables.
wrapped_chart(
df,
x,
y,
color,
id = "bench",
df_original,
y_left = NULL,
y_right = NULL,
facet_var = rlang::sym("VIS_Groep"),
facet_name_var = rlang::sym("VIS_Groep_naam")
)
df |
The data frame used to create the plot. |
x |
The variable used on the x-axis of the plot. |
y |
The variable used on the y-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. |
df_original |
The original dataframe before summarization |
y_left |
The variable used on the left y-axis when creating a comparative plot. |
y_right |
The variable used on the right y-axis when creating a comparative plot. |
facet_var |
The variable used for facet wrapping. |
facet_name_var |
The name of the variable used for facet wrapping. |
A ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.