plot.many.ts {Boom} | R Documentation |
Multiple time series plots
Description
Plots many time series plots on the same graphical device. Each plot gets its own frame. Scales can be adjusted to see variation in each plot (each plot gets its own scale), or variation between plots (common scale).
Usage
PlotManyTs(x, type = "l", gap = 0, boxes = TRUE, truth = NULL,
thin = 1, labs, same.scale = TRUE, ylim = NULL,
refline = NULL, color = NULL, ...)
Arguments
x |
Matrix, data frame, list, or 3-dimensional array to be plotted. |
type |
type of line plots to produce. See
|
gap |
Number of lines of space to put between plots. |
boxes |
Logical indicating whether boxes should be drawn around each plot. |
truth |
A vector or matrix of reference values to be added to
each plot as a horizontal line. The dimension should match
|
thin |
Frequency of observations to plot. E.g. |
labs |
Optional character vector giving the title (e.g. variable
name) for each plot. If |
same.scale |
Logical indicating whether plots should be drawn
with a common vertical axis, which is displayed on alternating rows
of the plot. If |
ylim |
Scale of the vertical axis. If non-NULL then same.scale
is set to |
refline |
a vector or scalar value to use as a reference line.
This is a supplement to the |
color |
Vector of colors to use in the plots. |
... |
Author(s)
Steven L. Scott
See Also
plot.ts
(for plotting a small number of time series)
plot.macf
Examples
x <- matrix(rnorm(1000), ncol = 10)
PlotManyTs(x)
PlotManyTs(x, same = FALSE)