plot_riskfactor.Rd
Plot geographical risk map of different types optionally with administrative divisions in the background.
plot_riskfactor(x, admin = NULL, pal = grDevices::hcl.colors(50))
An object of class 'sf', 'SpatRaster' or 'geonetwork'.
A 'sf' POLYGONS object with administrative units.
Character vector. Colours. The default is grDevices::hcl.colors(50). #'
cmr <- mapMCDA_datasets()
plot_riskfactor(cmr$animal.density)
plot_riskfactor(cmr$mobility, admin = cmr$cmr_admin3)
plot_riskfactor(cmr$water_bodies, admin = cmr$cmr_admin3)