powered by
Prints the histogram and corresponding density curve
panel.hist(x, col.bar = "gray", ...)
a numeric vector of x values
the color of the bars
options passed to hist
Claus Ekstrom claus@rprimer.dk
This function prints a combined histogram and density curve for use with the pairs function
Ekstrom, CT (2011) The R Primer.
pairs(~ Ozone + Temp + Wind + Solar.R, data=airquality, lower.panel=panel.smooth, diag.panel=panel.hist, upper.panel=panel.r2)
Run the code above in your browser using DataLab