rt_explore_plot_categoric_numeric_aggregation: returns a graph for categoric/numeric variables based on the...

View source: R/explore_basics.R

rt_explore_plot_categoric_numeric_aggregationR Documentation

returns a graph for categoric/numeric variables based on the aggregation_type

Description

returns a graph for categoric/numeric variables based on the aggregation_type

Usage

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
)

Arguments

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


shane-kercheval/rtools documentation built on July 7, 2022, 8:31 a.m.