plotHistogram: Plot variable histogram and density

View source: R/plotHistogram.R

plotHistogramR Documentation

Plot variable histogram and density

Description

Plot the histogram and density of the variable

Usage

plotHistogram(var, varName = "Variable", density = TRUE, ...)

Arguments

var

(float) vector of values to plot

varName

(str) Name of the variable to plot

density

(bool) If TRUE plot overlay the density on the variable

...

Passes arguments to ggplot2::geom_histogram, e.g. bins=20, binwidth=1

Value

Grob (ggplot object)


phenomecentre/peakPantheR documentation built on Feb. 29, 2024, 9:07 p.m.