- x, y
time series to be plotted; if both present, x will be the time index.
- main
add a main title - the default is no title.
- ylab
y-axis label - the default is the name of the ts object.
- xlab
x-axis label - the default is 'Time'.
- title
add an individual plot title for multiple plots - the default is no title.
- type
type of plot - the default is line.
- margins
inches to add (or subtract) to the margins. Input one value to apply to all margins or a vector of length 4 to add (or subtract) to the (bottom, left, top, right) margins.
- omargins
inches to add to the outer margins. Input one value to apply to all margins or a vector of length 4 to add to the (bottom, left, top, right) outer margins.
- ncolm
for multiple time series, the number of columns to plot.
- byrow
for multiple time series - if TRUE (default), plot series row wise; if FALSE, plot series column wise.
- nx, ny
number of major cells of the grid in x and y direction. When NULL, as per default, the grid aligns with the tick marks on the corresponding default axis (i.e., tickmarks as computed by axTicks). When NA, no grid lines are drawn in the corresponding direction.
- minor, nxm, nym
if minor=TRUE, the number of minor tick marks on x-axis, y-axis. minor=FALSE removes both or set either to 0 or 1 to remove. The default is one minor tick on the x-axis and none on the y-axis.
- xm.grid, ym.grid
if TRUE (default), adds grid lines at minor x-axis, y-axis ticks.
- col
line color(s), can be a vector for multiple time series.
- gg
if TRUE, will produce a gris-gris plot (gray graphic interior with white grid lines); the default is FALSE.
The grammar of astsa is voodoo; see
https://www.youtube.com/watch?v=b4J8VrprrGE
- spaghetti
if TRUE, will produce a spaghetti plot (all series on same plot).
- pch
plot symbols (default is 1, circle); can be a vector for multiple plots.
- lty
line type (default is 1, solid line); can be a vector for multiple plots.
- lwd
line width (default is 1); can be a vector for multiple plots.
- mgpp
this is used to adjust (add to) the mgp graphics parameters settings (?par), which are c(1.6,.6,0) here; the R default is c(3,1,0). This will be helpful in moving an axis label farther from the axis if necessary.
- topper
non-negative value to add to the top outer margin; if NULL (default) a suitable value is chosen
- addLegend
if TRUE and spaghetti=TRUE, will add a simple legend. If more details are needed, leave this set to FALSE (the default) and use legend directly.
- location
if addLegend=TRUE, the location of the legend with options "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright" (the default), "right" and "center".
- boxit
if TRUE (default), the legend is in a box; if FALSE, no box is drawn.
- horiz
if addLegend=TRUE, should the legend be horizontal (default is FALSE - vertical).
- legend
if NULL (default), the legend uses names of each time series; otherwise, use to customize legend.
- llwd
line width for the legend if different from the plotted lines.
- scale
for multiple series, the scale for character expansion.
- reset.par
logical; for multiple series, should the graphics parameters be reset after plotting.
- ...
other graphical parameters; see par.