r - Add vertical lines to a graph -
i'm wanting add vertical dotted/dashed on top of time series graph @ intervals.
would put command in abline arguments or there way?
use grid:
nx, ny - number of cells of grid in x , y direction. when null, per default, grid aligns tick marks on corresponding default axis (i.e., tickmarks computed axticks). when na, no grid lines drawn in corresponding direction.
example:
plot(1:5) grid(nx = null, ny = na)
Comments
Post a Comment