histldn | R Documentation |
histld
plots a histogram having the counts logged and
passing some default values to hist
. A Gaussian
curve of normal approximation gets superposed onto the histogram.
histldn(x, breaks = 100,
col = "gray", coln = "red",
main = NULL, xlab = NULL,
plot = TRUE, ...)
x |
a vector of values for which the histogram is desired |
breaks |
histogram |
col |
a color to fill the bars, defaults to gray, see |
coln |
a color of normal density estimate |
main |
|
xlab |
|
plot |
|
... |
other parameters to |
an object of class histogram
, see hist
Tomas Sieger
opar<-par(mfrow=c(1,2))
x<-rnorm(1000)
x<-c(x,rep(x[abs(x)<1],10),rep(x[abs(x)<.3],20),rep(x[abs(x)<.1],50))
histdn(x)
histldn(x)
par(opar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.