srtm_prov: SRTM averages by province

Description Usage Format Details Author(s) Examples

Description

Average elevations by province, weighted or not by local population density.

Usage

1

Format

An object of class data.frame with 63 rows and 3 columns.

Details

Local population density data are coming from the WorldPop project.

Author(s)

Marc Choisy

Examples

 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)

choisy/srtmVN documentation built on Aug. 21, 2019, 2:14 p.m.