Learn R Programming

AnalyzeTS (version 2.0)

grid.on: Grid on

Description

Paint to line graph.

Usage

grid.on(h = TRUE, v = TRUE, col = "gray", nv = 1, nh = 1, lty = 3)

Arguments

h
Let h=FALSE to do not paint grid in horizontal.
v
Let v=FALSE to do not paint grid in vertical.
col
The color for grid lines.
nv
The number grid lines between two point in x axis.
nh
The number grid lines between two point in y axis.
lty
The grid line type.

Value

A grid is painted in graph.

Examples

Run this code
plot(lh)
grid.on(h=TRUE,v=FALSE)
plot(co2)
grid.on(col="red",nv=3)

Run the code above in your browser using DataLab