new.chart.TimeSeries: A New chart.Timeseries Function

Description Usage Arguments Examples

Description

This function allows you to plot timeseries and is based on xts::plot.xts rather than base graphics.

Usage

1
2
3
4
5
6
7
new.chart.TimeSeries(R, auto.grid = TRUE, yaxis.right = FALSE, type = "l",
  lty = 1, lwd = 2, las = par("las"), main = NULL, ylab = NULL,
  date.format.in = "%Y-%m-%d", date.format = NULL, xlim = NULL,
  ylim = NULL, element.color = "darkgray", colorset = (1:12),
  pch = (1:12), legend.loc = NULL, ylog = FALSE, cex.axis = 0.8,
  major.ticks = "auto", grid.color = "lightgray", grid.lty = "dotted",
  xaxis.labels = NULL, ...)

Arguments

R

an xts, vector, matrix, data frame, timeSeries or zoo object of

auto.grid

if true, draws a grid aligned with the points on the x and y axes

yaxis.right

if true, draws the y axis on the right-hand side of the plot

type

set the chart type, same as in plot

lty

set the line type, same as in plot

lwd

set the line width, same as in plot

las

set the axis label rotation, same as in plot

main

set the chart title, same as in plot

ylab

set the y-axis label, same as in plot

date.format.in

allows specification of other date formats in the data object, defaults to "%Y-%m-%d"

date.format

re-format the dates for the xaxis

xlim

set the x-axis limit, same as in plot

ylim

set the y-axis limit, same as in plot

element.color

provides the color for drawing chart elements, such as the box lines, axis lines, etc. Default is "darkgray"

colorset

color palette to use, set by default to rational choices

pch

symbols to use, see also plot

legend.loc

places a legend into one of nine locations on the chart: bottomright, bottom, bottomleft, left, topleft, top, topright, right, or center.

ylog

TRUE/FALSE set the y-axis to logarithmic scale, similar to plot, default FALSE

cex.axis

The magnification to be used for axis annotation relative to the current setting of 'cex', same as in plot.

major.ticks

Should major tickmarks be drawn and labeled, default 'auto'

grid.color

sets the color for the reference grid

grid.lty

defines the line type for the grid

xaxis.labels

Allows for non-date labeling of date axes, default is NULL

...

any other passthru parameters

Examples

1
2
3
4
5
6
library(xtsPerAnl)
library(PerformanceAnalytics)
library(xtsExtra)  #library(xts)
library(RColorBrewer)
data(managers)
new.chart.TimeSeries(managers)

Shubham-Khanve/xtsPerAnl_old documentation built on May 9, 2019, 1:29 p.m.