Description Usage Arguments Examples
This function uses ggplot2 to create a histogram with a background normal curve and a foreground density curve.
1 2 | mfs_histo_density(d, whichcol, xlab = "__", title = "__",
color_scheme = "blackish")
|
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" |
1 2 | mfs_histo_density(d=my_dataframe, whichcol="colname")
mfs_histo_density(my_dataframe, "colname", title="Look, it's normal!")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.