Description Usage Format Details Author(s) Examples
Average elevations by province, weighted or not by local population density.
1 |
An object of class data.frame
with 63 rows and 3 columns.
Local population density data are coming from the WorldPop project.
Marc Choisy
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
# loading the data:
library(srtmVN)
data(srtm_prov)
# comparing the 2 measures of aggregated elevation:
plot(elevation1 ~ elevation2, srtm_prov, xlab = "weighted by population density", ylab = "non weighted")
abline(0, 1)
# mapping the 2 measures:
library(sf)
provinces <- gadmVN::gadm()
provinces <- merge(provinces, srtm_prov)
plot(provinces[c("elevation1", "elevation2")])
# mapping the differences between the 2 measures:
provinces$elevation_diff <- with(srtm_prov, elevation1 - elevation2)
plot(provinces["elevation_diff"])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.