Description Usage Arguments Value
View source: R/aggregate_to_shape_file.R
Aggregate the spatio-temporal prediction to the elements of a shape file
1 2 | aggregate_to_shape_file(prediction, shape, scale_bar_dist = 3,
mc.cores = parallel::detectCores() - 1)
|
prediction |
a spatio-temporal prediction as returned by predict.stAirPol.model |
shape |
a shapefile of the class sd |
scale_bar_dist |
Kilometers of the scalebar |
mc.cores |
how much cores should be used for parallelization, default is one core less your maximum number of detected cores. |
a ggplot object with the aggregation map
remove points which does not contain in the shapefile remove shapes where no gridpoints are detected Plot the calculated aggregation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.