Description Usage Arguments Value See Also Examples
Plot a rmap.frame
1 2 3 4 | ## S4 method for signature 'rmap.frame,missing'
plot(x,
colours = palette_rangemap("set1"), outlierDetector, boundary,
boundaryCol = 1, boundarySize = 0.5, ...)
|
x |
a |
colours |
a vector of colours to pass to |
outlierDetector |
a function used to detect ouliers. Should return lower and upper limits of non-outliers. |
boundary |
a |
boundaryCol |
boundary color, see |
boundarySize |
boundary size, |
... |
further arguments to pass to |
a ggplot
object for one map or a gtable
in case of more than one map.
plot,SpatialPixelsRangeMap,missing-method
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | require(rangeMapper)
breding_ranges = rgdal::readOGR(system.file(package = "rangeMapper",
"extdata", "wrens", "vector_combined"), "wrens", verbose = FALSE)[1:70, ]
data(wrens)
d = subset(wrens, select = c('sci_name', 'body_mass', 'clutch_size') )
con = ramp("wrens.sqlite", gridSize = 4, spdf = breding_ranges, biotab = d, ID = "sci_name",
FUN = "median", overwrite = TRUE)
m = rangeMap.fetch(con, c('median_body_mass', 'median_clutch_size'), spatial = FALSE)
plot(m, ncol = 2)
wrens_boundary = rgeos::gUnionCascaded(breding_ranges)
plot(m, ncol = 2, boundary = wrens_boundary)
## Not run:
if(require(extremevalues))
plot(m, ncol = 2, outlierDetector = function(x) getOutliersI(x)$limit)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.