HistogramPlot | R Documentation |
Produce tailored histogram plots and kernel density/log-density estimate plots.
histPlot(x, labels = TRUE, col = "steelblue", fit = TRUE,
title = TRUE, grid = TRUE, rug = TRUE, skip = FALSE, ...)
densityPlot(x, labels = TRUE, col = "steelblue", fit = TRUE, hist = TRUE,
title = TRUE, grid = TRUE, rug = TRUE, skip = FALSE, ...)
logDensityPlot(x, labels = TRUE, col = "steelblue", robust = TRUE,
title = TRUE, grid = TRUE, rug = TRUE, skip = FALSE, ...)
x |
an object of class |
labels |
a logical flag, should the plot be returned with default labels
and decorated in an automated way? By default |
col |
the color for the series. In the univariate case use just a color
name like the default, |
fit |
a logical flag, should a fit be added to the plot? |
hist |
a logical flag, by default |
title |
a logical flag, by default |
grid |
a logical flag, should a grid be added to the plot? By default
|
rug |
a logical flag, by default TRUE. Should a rug representation of the data be added to the plot? |
skip |
a logical flag, should zeros be skipped in the return Series? |
robust |
a logical flag, by default |
... |
optional arguments to be passed on. |
histPlot
produces a tailored histogram plot.
densityPlot
produces a tailored kernel density estimate plot.
logDensityPlot
produces a tailored log kernel density estimate plot.
NULL
, invisibly. The functions are used for the side effect of
producing a plot.
## data
data(LPP2005REC, package = "timeSeries")
SPI <- LPP2005REC[, "SPI"]
plot(SPI, type = "l", col = "steelblue", main = "SP500")
abline(h = 0, col = "grey")
histPlot(SPI)
densityPlot(SPI)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.