5.1 Plot methods for sp
objects
Let’s first get some data:
library(sp)
library(sf)
library(raster)
bel1 <- getData("GADM", country = "BEL", level = 1, path = "data")
#R> Warning in getData("GADM", country = "BEL", level = 1, path = "data"): getData will be removed in a future version of raster
#R> . Please use the geodata package instead
#R> Warning in getData("GADM", country = "BEL", level = 2, path = "data"): getData will be removed in a future version of raster
#R> . Please use the geodata package instead
Quick plot:
Two quick plots:
Slightly customized plots: