List of Functions:
histPlot |
Returns a tailored histogram plot, |
densityPlot |
Returns a tailored kernel density estimate plot, |
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, ...)
col="steelblue"
, in the
multivariate case we recommend to select the colors from a
color palette, e.g. col=heat.colors(ncol(x))
.
TRUE
. To plot a horizontal lines only
use grid="h"
and for vertical lines use grid="h"
,
respectively.
TRUE
.
"timeSeries"
or any other object which
can be transformed by the function as.timeSeries
into an
object of class timeSeries
. The latter case, other then
timeSeries
objects, is more or less untested.
## data -
SPI <- LPP2005REC[, "SPI"]
plot(SPI, type = "l", col = "steelblue", main = "SP500")
abline(h = 0, col = "grey")
## histPlot -
histPlot(SPI)
## densityPlot -
densityPlot(SPI)
Run the code above in your browser using DataLab