Learn R Programming

fBasics (version 4052.98)

BoxPlot: Time series box plots

Description

Produce a box plot or a box percentile plot.

Usage

boxPlot(x, col = "steelblue", title = TRUE, ...)
boxPercentilePlot(x, col = "steelblue", title = TRUE, ...)

Value

NULL

Arguments

x

an object of class "timeSeries" or any other object which can be transformed by the function as.timeSeries into an object of class "timeSeries".

col

the color for the series. In the univariate case use just a color name like the default, col = "steelblue", in the multivariate case we recommend to select the colors from a color palette, e.g. col = heat.colors(ncol(x)).

title

a logical flag, by default TRUE. Should a default title added to the plot?

...

optional arguments to be passed to boxplot.

Details

boxPlot produces a side-by-side standard box plot,

boxPercentilePlot produces a side-by-side box-percentile plot.

See Also

seriesPlot, returnPlot, cumulatedPlot, drawdownPlot

qqnormPlot, qqnigPlot, qqghtPlot, qqgldPlot

histPlot, densityPlot, logDensityPlot

acfPlot, pacfPlot, teffectPlot, lacfPlot

scalinglawPlot

returnSeriesGUI

Examples

Run this code
## data
data(LPP2005REC, package = "timeSeries")
LPP <- LPP2005REC[, 1:6]
plot(LPP, type = "l", col = "steelblue", main = "SP500")
abline(h = 0, col = "grey")
   
boxPlot(LPP) 

Run the code above in your browser using DataLab