rt_explore_plot_histogram: returns a histogram of 'variable'

View source: R/explore_basics.R

rt_explore_plot_histogramR Documentation

returns a histogram of 'variable'

Description

returns a histogram of 'variable'

Usage

rt_explore_plot_histogram(
  dataset,
  variable,
  comparison_variable = NULL,
  num_bins = 30,
  x_zoom_min = NULL,
  x_zoom_max = NULL,
  log_scale_x = FALSE,
  base_size = 11
)

Arguments

dataset

dataframe containing numberic columns

variable

the variable from which to create a histogram

comparison_variable

(optional) the additional variable to group by; must be a string/factor column

num_bins

the number of bins that the histogram will use

x_zoom_min

adjust (i.e. zoom in) to the x-axis; sets the minimum x-value for the adjustment

x_zoom_max

adjust (i.e. zoom in) to the x-axis; sets the maximum x-value for the adjustment

log_scale_x

if TRUE, applies scale_x_log10

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.