spRplot: Interface GoogleMaps within R

Description Usage Arguments Value See Also Examples

View source: R/spRplot.R

Description

Plot spatial data with GoogleMaps background.

Usage

1
2
3
4
spRplot(data, var = NULL, maptype = "satellite", decimals = 3,
  add = FALSE, cuts = 5, cuts.type = "range", col.pallete = list(col =
  heat.colors(if (length(cuts) == 1) cuts else length(cuts)), alpha = 1),
  legend.att = NULL, zoom = NULL, lwd = 2, ...)

Arguments

data

a spatial data from any sp classes.

var

an attribute name in the spatial data.

maptype

GoogleMaps types: 'satellite', 'terrain', 'roadmap', 'satellite', 'hybrid'.

decimals

number of decimals in the legend.

add

boolean. Default FALSE, if adding information to a previous plot.

cuts

number of cuts in the legend. Can also be a vector with the cuts point.

cuts.type

method of selecting the cuts points. Ignored if cuts = vector .

col.pallete

a list containing the pallete of colors to be used (col) and the transparency level (alpha) .

legend.att

a list containing the attributes for legend. See legend.

zoom

zoom level.

lwd

the line width for SpatialLines/SpatialLinesDataframe class.

...

further arguments passed to or from other methods.

Value

A plot window on the browser.

See Also

See spGplot.

Examples

1
2
3
4
## Not run: 
spRplot(rio)

## End(Not run)

lgsilvaesilva/spGoogle documentation built on May 21, 2019, 6:08 a.m.