- x, y
time series to be plotted; if both present, x will be the time index.
- main
add a plot 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'.
- 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.
- 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
- ...
other graphical parameteres; see par.