View source: R/Standardization.R
group_data_for_plot | R Documentation |
Returns data in the appropriate format for the user-specified plot
group_data_for_plot(data, x_var, y_var, breakout, aggregate = "sum")
data |
The data to format for the plot, as a tibble |
x_var |
x-axis |
y_var |
y-axis |
breakout |
the facets or other divisions that will be grouped by when summing |
aggregate |
aggregation function; defaults to sum |
Transforms data by summarizing on key display variable
A tibble of formatted data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.