plot-boxPlot: Time Series Box Plots

Description Usage Arguments Value Examples

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

1
2
3
 
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

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

Example output

Loading required package: timeDate
Loading required package: timeSeries


Rmetrics Package fBasics
Analysing Markets and calculating Basic Statistics
Copyright (C) 2005-2014 Rmetrics Association Zurich
Educational Software for Financial Engineering and Computational Science
Rmetrics is free software and comes with ABSOLUTELY NO WARRANTY.
https://www.rmetrics.org --- Mail to: info@rmetrics.org

fBasics documentation built on Nov. 17, 2017, 2:14 p.m.