hdxlive: first go at interacting with hdx itos live admin layers from...

Description Usage Arguments Details Value Examples

View source: R/hdxlive.r

Description

NOTE I changed ZBM to ZMB for Zambia

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
hdxlive(
  country,
  level = 2,
  colr_hdx = rgb(0, 0, 1, alpha = 0.4),
  colr_gadm = rgb(1, 0, 0, alpha = 0.4),
  lwd = 2,
  legend = TRUE,
  add = FALSE,
  alpha = 0.5,
  plot = "compare_sf"
)

Arguments

country

a character vector of country names

level

which admin level to return

colr_hdx

colour for hdx boundaries in plots defaults blue semi-transparent

colr_gadm

colour for gadm boundaries in plots defaults red semi-transparent

lwd

line width in plots

legend

legend in sf plots TRUE/FALSE

add

whether to add sf plot to existing plot

alpha

transparency in mapview plots

plot

option to display map 'mapview' for interactive, 'sf' for static, 'compare' to sf compare with gadm

Details

start by checking whether I can open a few geojson files copied across

Value

not sure yet

Examples

1
2
3
4
5
#hdxlive("angola")
#hdxlive('benin',level=2)
#hdxlive('zimbabwe',level=2)
#to compare gadm and hdx
#hdxlive('malawi',level=2, plot='compare_mapview')

afrimapr/afriadmin documentation built on Dec. 15, 2021, 2:35 p.m.