A function to produce a summary plot of a given y variable, chossing with varibles will be used for colours and for facets
1 2 3 4 5 6 7 8 9 10 | plot_summary(
df,
y_var,
colour_var,
f_rows_var,
f_cols_var,
df.labels,
log_space,
free_y_scale = F
)
|
df |
A data.frame containing the data to be plotted. |
y_var |
A string with the column name of the variable for the y axis. |
colour_var |
A string with the column name of the variable to determine the colours. |
f_rows_var |
A string with the column name of the variable to the determine the rows for the facet_grid. |
f_cols_var |
A string with the column name of the variable to the determine the columns for the facet_grid. |
df.labels |
A data.frame with plot labels. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.