Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot-boxPlot

Time Series Box Plots


Description

Returns a box or a box percentile plot.

List of Functions:

boxPlot Returns a side-by-side standard box plot,
boxPercentilePlot Returns a side-by-side box-percentile plot.

Usage

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

Arguments

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?

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. The latter case, other then timeSeries objects, is more or less untested.

...

optional arguments to be passed.

Value

displays a time series plot.

Examples

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

fBasics

Rmetrics - Markets and Basic Statistics

v3042.89.1
GPL (>= 2)
Authors
Diethelm Wuertz [aut], Tobias Setz [cre], Yohan Chalabi [ctb] Martin Maechler [ctb]
Initial release
2017-11-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.