panel.hist | R Documentation |
Prints the histogram and corresponding density curve
panel.hist(x, col.bar = "gray", ...)
x |
a numeric vector of x values |
col.bar |
the color of the bars |
... |
options passed to hist |
This function prints a combined histogram and density curve for use with the pairs function
Claus Ekstrom claus@rprimer.dk
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.