rangeMapper (version 0.3-1)

plot,SpatialPixelsRangeMap,missing-method: Plot a SpatialPixelsRangeMap

Description

This is a wrapper around spplot

Usage

# S4 method for 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataCamp Workspace