Plot a SpatialPixelsRangeMap

Share:

Description

This is a wrapper around spplot

Usage

1
2
3
4
## S4 method for signature 'SpatialPixelsRangeMap,missing'
plot(x,
  colorpalette = brewer.pal.get("Spectral")[11:1], ncols = 20,
  scales = FALSE, style = "equal", ...)

Arguments

x

a SpatialPixelsRangeMap.

colorpalette

a color palette.

ncols

number of color classes required, default to 20; argument to be passed to classIntervals.

scales

ff ‘FALSE’, the default, axes scale are not drawn.

style

class interval style; see classIntervals for more details.

...

any argument that can be passed to see spplot

See Also

plot,rmap.frame,missing-method.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
breding_ranges = rgdal::readOGR(system.file(package = "rangeMapper",
     "extdata", "wrens", "vector_combined"), "wrens", verbose = FALSE)[1:10, ]
data(wrens)
d = subset(wrens, select = c('sci_name', 'body_size', 'body_mass', 'clutch_size') )
con = ramp("wrens.sqlite", gridSize = 10, spdf = breding_ranges, biotab = d, ID = "sci_name",
            metadata = rangeTraits(), FUN = "median", overwrite = TRUE)
all = rangeMap.fetch(con)
sr = rangeMap.fetch(con, 'species_richness')
plot(sr)
plot(all)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.