util_histogram {dataquieR} | R Documentation |
Utility function to create histograms
Description
A helper function for simple histograms.
Usage
util_histogram(
plot_data,
num_var = colnames(plot_data)[1],
fill_var = NULL,
facet_var = NULL,
nbins_max = 100,
colors = "#2166AC",
is_datetime = FALSE
)
Arguments
plot_data |
a |
num_var |
column name of the numerical or datetime variable
in |
fill_var |
column name of the categorical variable in |
facet_var |
column name of the categorical variable in |
nbins_max |
the maximum number of bins for the histogram (see
|
colors |
vector of colors, or a single color |
is_datetime |
if |
Value
a histogram
[Package dataquieR version 2.5.1 Index]