aggregate_to_shape_file: aggregate_to_shape_file

Description Usage Arguments Value

View source: R/aggregate_to_shape_file.R

Description

Aggregate the spatio-temporal prediction to the elements of a shape file

Usage

1
2
aggregate_to_shape_file(prediction, shape, scale_bar_dist = 3,
  mc.cores = parallel::detectCores() - 1)

Arguments

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.

Value

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


maxikellerbauer/stAirPol documentation built on May 3, 2019, 3:16 p.m.