View source: R/explore_basics.R
rt_explore_plot_categoric_numeric_aggregation | R Documentation |
returns a graph for categoric/numeric variables based on the aggregation_type
rt_explore_plot_categoric_numeric_aggregation( dataset, categoric_variable, numeric_variable, aggregation_type, color_variable = NULL, facet_variable = NULL, show_variable_totals = TRUE, show_comparison_totals = TRUE, simple_mode = FALSE, base_size = 11 )
dataset |
dataframe containing numberic columns |
categoric_variable |
the variable (e.g. factor) to get unique values from |
numeric_variable |
the additional variable to group by; must be a string/factor column |
aggregation_type |
must be one of 'Total', 'Mean', 'Average Value Per Record', 'Median', 'Boxplot' |
color_variable |
additional categoric variable to color by |
facet_variable |
additional categoric variable to facet by |
show_variable_totals |
if TRUE (the default) the graph will display the totals for the variable |
show_comparison_totals |
if TRUE (the default) the graph will display the totals for the comparison_variable |
simple_mode |
simplifies the coloring scheme and text |
base_size |
uses ggplot's base_size parameter for controling the size of the text |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.