mfs_histo_density: A Layered Histogram Function

Description Usage Arguments Examples

Description

This function uses ggplot2 to create a histogram with a background normal curve and a foreground density curve.

Usage

1
2
mfs_histo_density(d, whichcol, xlab = "__", title = "__",
  color_scheme = "blackish")

Arguments

d

A data.frame containing the column of interest

whichcol

The name of the column of interest

xlab

Optionally, provide a label for the x axis

title

Optionally, provide a title to override the default

color_scheme

Optionally, a color scheme for the plot, "blackish" "bluish" "reddish" "greenish"

Examples

1
2
mfs_histo_density(d=my_dataframe, whichcol="colname")
mfs_histo_density(my_dataframe, "colname", title="Look, it's normal!")

mfschmidt/mfs.r.utils documentation built on May 29, 2019, 4:44 a.m.