Description Usage Arguments Value Note See Also Examples
View source: R/rangeMapper-ramp.R
A quick alternative to initiate a project by pipelining several functions.
1 2 |
file |
project file name. |
dir |
project directory. |
gridSize |
grid resolution (in units previously set by |
spdf |
|
bbox |
the spatial domain of the project (see |
ID |
a character vector of length one. An |
biotab |
character string identifying the ‘BIO’ table to use. |
metadata |
a named list of functions. See |
FUN |
the function to be applied to each pixel. If |
overwrite |
logical vector, default to FALSE (the file is kept but all tables are dropped). |
an sqlite connection to a rangeMapper project
ramp
combines all the functions from rangeMap.start() to processRanges() and
rangeMap.save() but is less flexible as compared with a step-by-step
project building.
rangeMap.start
global.bbox.save
gridSize.save
canvas.save
processRanges
bio.save
rangeMap.save
1 2 3 4 5 6 7 8 | breding_ranges = rgdal::readOGR(system.file(package = "rangeMapper",
"extdata", "wrens", "vector_combined"), "wrens", verbose = FALSE)[1:50, ]
data(wrens)
d = subset(wrens, select = c('sci_name', 'body_size', 'clutch_size') )
con = ramp("wrens.sqlite", gridSize = 15, spdf = breding_ranges, biotab = d, ID = "sci_name",
metadata = rangeTraits(), FUN = "median", overwrite = TRUE)
m = rangeMap.fetch(con)
dbDisconnect(con)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.