boxplotAndDensityCurveOnHistogram
Boxplot and density curve overlaid on histogram
boxplotAndDensityCurveOnHistogram(df, colName, limLow, limHigh)
df
: Data frame with data to be displayedcolName
: Name of the selected column in a given data framelimLow
: the limit on the lower side of the displayed rangelimHigh
: the limit on the higher side of the displayed rangeA figure being a density curve overlaid on histogram
library(ggplot2) library(grid) library(gridExtra) boxplotAndDensityCurveOnHistogram(Madeyski15EISEJ.PropProjects, "STUD", 0, 100) boxplotAndDensityCurveOnHistogram(Madeyski15SQJ.NDC, "simple", 0, 100)
Lech Madeyski