plot.gts: Plot Time Series Data

Description Usage Arguments Value Author(s) Examples

View source: R/gts.R

Description

This function is implemented with ggplot2.

Usage

1
2
3
4
5
6
## S3 method for class 'gts'
plot(x, to.unit = NULL, background = "white",
  line.type = "solid", line.color = "#003C7D", point.size = 0,
  point.shape = 20, title = NULL, title.size = 15,
  axis.label.size = 13, axis.tick.size = 11, axis.x.label = NULL,
  axis.y.label = NULL, ...)

Arguments

x

A gts object

to.unit

A string indicating the unit which the data is converted to. The supported units are "ns"(nanosecond), "ms"(millisecond), "sec", "min", "hour", "day", "month", and "year".

background

A string that determines the graph background. It can be 'grey' or 'white'.

line.type

A string that indicates the type of lines.

line.color

A string that indicates the color of lines.

point.size

An integer that indicates the size of points on lines.

point.shape

An integer that indicates the shape of points on lines.

title

A string that indicates the title of the graph.

title.size

An integer that indicates the size of title.

axis.label.size

An integer that indicates the size of label.

axis.tick.size

An integer that indicates the size of tick mark.

axis.x.label

A string that indicates the label on x axis.

axis.y.label

A string that indicates the label on y axis.

...

other arguments passed to specific methods

Value

A ggplot2 panel containing the graph of time series.

Author(s)

Wenchao

Examples

1
2
3
x = gen_gts(50, WN(sigma2=1), unit = 'sec', freq = 1)
plot(x)
plot(x, to.unit = 'ns', line.type = 'dashed', line.color = 'black', point.size = 2)

SMAC-Group/gmwm documentation built on Sept. 11, 2021, 10:06 a.m.