View source: R/smooth_shapefile.R
smooth_shapefile | R Documentation |
Given a shapefile and a data.frame
with a value for each polygon,
return a smoothed value of the values.
smooth_shapefile(
shapefile,
data_by_id,
id,
var2smooth,
k = 10,
coalesce.to = 0
)
shapefile |
A shapefile (as from this package) containing an |
data_by_id |
A |
id |
The key of |
var2smooth |
A length-one character vector indicating which variable in |
k |
Passed to |
coalesce.to |
A single value. If there are any missing values in |
A vector of values representing the smoothed version of data_by_id[[id]]
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.