geo (version 1.4-3)

geogrid: Plots a grid.

Description

Plots a grid defined by the vectors lat, lon. The grid is plotted on a graph initialized by geoplot. lon gives the meridians plotted and lat the parallels plotted.

Usage

geogrid(lat, lon = 0, col = 1, type = "l", lwd = 0, lty = 0, pch = "+", nx = 5)

Arguments

lat,lon
Latitude and longitude of data ( or x and y coordinates), negative for southern latitudes and western longitudes. May be supplied as two vectors or as a dataframe lat (or x) including vectors lat$lat and lat$lon (x$x and x$y if projection = none).
col
Color number used, default value is 1 (black).
type
"l" means line and "p" points. Default is "l".
lwd
Linewidth. Default value is the value set when the program was called.
lty
Linetype. Default value is the value set when the program was called.
pch
Type of symbol at gridpoints default is "+".
nx
sets smoothness of curved Lambert parallels

Value

No values returned.

See Also

geoplot, geolines, geopolygon, geotext, geosymbols, geopar, geolocator, geocontour.

Examples

Run this code
## Not run:        geogrid(latgr, longgr)
# 
#        codgrd <- list(lat = seq(62, 68, by = 0.1), lon = seq(-28, -10, 0.25))
#        geogrid(codgrd)   # a fine grid of Iceland and neighbouring seas
#        geoplot(new = T)
# ## End(Not run)

Run the code above in your browser using DataLab