PlotDiscrHist | R Documentation |
Plot discrete histogram (barplot) of the data frame column named in the param argument. It also plots the mean as a vertical continuous line, the mean plus/minus 2 standard deviations as veritcal dotted lines and overlays a density plot of the normal distribution with mean and standard deviation corresponding to those of the data.
PlotDiscrHist(DF, param, title = "")
DF |
A data frame containing columns whose discrete histogram is to be plotted. |
param |
The column name of the columns for which to plot the discrete histogram. |
title |
Title of the plot (default=""). |
It returns a ggplot object.
## Not run:
PlotDiscrHist(sampleA,"LDL")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.