gadm_removeBackground: Removes the background of a map

Description Usage Arguments Value Author(s) See Also Examples

Description

Removes the backround previously loaded with gadm_getBackground. Original .tif file is not deleted.

Usage

1
2
3

Arguments

x

Object gadm_sp or gadm_sf of the region that you want to remove the background.

Value

Object gadm_sp or gadm_sf

Author(s)

Jean Pierre Decorps <jp.decorps@epiconcept.fr>

See Also

gadm_getBackground

Examples

1
2
3
4
5
6
7
# library(GADMTools)
# Loads France @ level 2 (departements)
# FRA <- gadm_sf.loadCountries("FRA", level = 2, basefile = "DATA/")
# FRA <- gadm_getBackground(FRA, name = "FRABGND", clip = FALSE)
# plotmap(FRA)
# FRA <- gadm_removeBackground(FRA)
# plotmap(FRA)

GADMTools documentation built on Aug. 5, 2021, 1:06 a.m.