plot.uts_vector: Plot a uts_vector

Description Usage Arguments See Also Examples

Description

Plot the time series of a "uts_vector". By default, the individual plots are superimposed, but they can also be plotted one at a time.

Usage

1
2
3
4
## S3 method for class 'uts_vector'
plot(x, plot.type = "single",
  ask = getOption("device.ask.default"), ..., legend = TRUE,
  legend.x = "topright", legend.y = NULL)

Arguments

x

a "uts_vector" object with numeric or logical observation values.

plot.type

"multiple" plots the time series on multiple plots, while "single" (the default) superimposes them on a single plot.

ask

logical. If TRUE (and the R session is interactive), then the plot_type is set to "multiple" and the user is asked for input before a each time series is plotted.

...

graphical parameters passed to plot.default, such as col, lty, lwd, main, pch, type. If not provided, several sensible default values are used.

legend

boolean. For plot.type="single", whether to add a legend to the plot.

legend.x, legend.y

the x and y co-ordinates to be used to position the legend. See legend.

See Also

plot.uts, plot.default, par

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Plot multiple time series in a single canvas by superimposing the plots
plot(ex_uts_vector())

# Plot each time series separately
old <- par(mfrow=c(1, 2))
plot(ex_uts_vector(), plot.type="multiple")
par(old)

# Plot one time series at a time, waiting for user input before drawing the next plot.
# The names of time series are used as the main titles for the plots.
plot(ex_uts_vector(), plot.type="multiple", ask=TRUE)

andreas50/utsMultivariate documentation built on May 12, 2019, 10:31 p.m.