netherlands | R Documentation |
Elevation data and map tiles for the Netherlands
data("netherlands")
nldElev
is a raster of elevation
nltTiles
is a background map
meuse
classic Meuse river data set from the sp package
nldCities
is a SpatialPointsDataFrame of city locations.
The inclusion of these datasets is intended to allow the package to build when an internet connection is not present.
See examples.
#library('mapmiscTerra')
#library('terra')
data("netherlands")
meuse = terra::unwrap(meuse)
nldTiles = terra::unwrap(nldTiles)
nldCities = terra::unwrap(nldCities)
map.new(meuse, buffer=1*1000)
plot(nldTiles,add=TRUE)
points(nldCities, pch=4, col='blue')
text(nldCities,label=nldCities$name, pos=2, col='blue')
points(meuse, pch=15, col=as.integer(meuse$soil))
legend('topleft', fill=1:nlevels(meuse$soil),legend=levels(meuse$soil), inset=0.2, bg='white', title='Soil type')
#insetMap(meuse, "bottomright",map=world)
# location won't be marked on the inset map unless rgdal is available
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.