Learn R Programming

reproducer (version 0.5.2)

boxplotAndDensityCurveOnHistogram: boxplotAndDensityCurveOnHistogram

Description

Boxplot and density curve overlaid on histogram

Usage

boxplotAndDensityCurveOnHistogram(df, colName, limLow, limHigh)

Value

A figure being a density curve overlaid on histogram

Arguments

df

Data frame with data to be displayed

colName

Name of the selected column in a given data frame

limLow

the limit on the lower side of the displayed range

limHigh

the limit on the higher side of the displayed range

Author

Lech Madeyski

Examples

Run this code
library(ggplot2)
library(grid)
library(gridExtra)
boxplotAndDensityCurveOnHistogram(Madeyski15EISEJ.PropProjects, "STUD", 0, 100)
boxplotAndDensityCurveOnHistogram(Madeyski15SQJ.NDC, "simple", 0, 100)

Run the code above in your browser using DataLab