Learn R Programming

terra (version 1.8-80)

plot_graticule: Plot a graticule

Description

Plot a SpatGraticule. You can create a SpatGraticule with graticule.

Usage

# S4 method for SpatGraticule,missing
plot(x, y, background=NULL, col="black", mar=NULL, labels=TRUE,
	retro=FALSE, lab.loc=c(1,1), lab.lon=NULL, lab.lat=NULL, lab.cex=0.65, 
	lab.col="black", off.lat=0.25, off.lon=0.25, box=FALSE, box.col="black",
	tickmarks=FALSE, add=FALSE, ...)

Arguments

See Also

graticule, plot, points, lines, polys, image, scatterplot, scale bar: sbar, north arrow: north

Examples

Run this code
g <- graticule(60, 30, crs="+proj=robin")

plot(g, background="azure", col="red", lty=2, box=TRUE)
plot(g, background="azure", col="light gray", lab.loc=c(1,2), 
		lab.lon=c(2,4,6), lab.lat=3:5, lty=3, retro=TRUE)

Run the code above in your browser using DataLab