SpHist: Histogram with ggplot

Description Arguments Examples

View source: R/SpHist.R

Description

Generate Histogram using ggplot2 with overlayed normal distribution.
Also includes mean and SD in the title.

Arguments

data

dataframe or vector of numeric values

variable

string of the variable of interest

bins

number of bins (defaults to 30)

save

boolean of whether to save image

Examples

1
SpHist(data=rnorm(100), variable="X Variable", bins=30, save=F)

sbujarski/SpPack documentation built on Sept. 24, 2020, 5:54 p.m.