Plot Time Series Data

Description

This function is implemented with ggplot2.

Usage

1
2
3
4
5
## 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(WN(sigma2=1), 50, unit = 'sec', freq = 1)
plot(x)
plot(x, to.unit = 'ns', line.type = 'dashed', line.color = 'black', point.size = 2)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.