geogrid: Plots a grid.

Description Usage Arguments Value See Also Examples

View source: R/geogrid.R

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

1
2
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

1
2
3
4
5
6
7
## 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)

geo documentation built on May 29, 2017, 5:36 p.m.