This document will be incomplete if rgdal
is unavailable or there is on
internet connection when this document is compiled. The full document is at
diseasemapping.r-forge.r-project.org.
See mc.bbbike.org/mc for examples more map tiles
(not all of which are compatible with mapmisc
).
The following are some examples of maps produced with mymap=openmap(x, path="something")
plot(openmap(x,path="osm"))
© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.
plot(openmap(x,path="osm-no-labels"))
© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.
plot(openmap(x,path="osm-de"))
© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.
plot(openmap(x,path="bw-mapnik"))
© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.
plotRGB(openmap(x,path="osm-seamap"))
© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.
plot(openmap(x,path="osm-fr"))
© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.
plot(openmap(x,path="hyda"))
© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.
plot(openmap(x,path="hyda-base"))
© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.
plot(openmap(x,path="hyda-roads"))
© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography is licensed as CC BY-SA.
plot(openmap(x,path="humanitarian"))
© OpenStreetMap contributors. Data by OpenStreetMap, available under the Open Database License, cartography by Humanitarian OSM team is licensed as CC BY-SA.
plot(openmap(x,path="cartodb"))
Map tiles by CartoDB under CC BY 3.0. Data by OpenStreetMap, available under the Open Database License
plot(openmap(x,path="cartodb-dark"))
Map tiles by CartoDB under CC BY 3.0. Data by OpenStreetMap, available under the Open Database License
plot(openmap(x,path="sputnik"))
plotRGB(openmap(x,path="stamen-toner"))
Map tiles by Stamen Design under CC BY 3.0. Data by OpenStreetMap, available under the Open Database License
plotRGB(openmap(x,path="stamen-watercolor"))
Map tiles by Stamen Design under CC BY 3.0. Data by OpenStreetMap, available under the CC BY-SA
plot(openmap(x,path="stamen-terrain"))
Map tiles by Stamen Design under CC BY 3.0. Data by OpenStreetMap, available under the CC BY-SA
plotRGB(openmap(x,path="stamen-terrain-labels"))
Map tiles by Stamen Design under CC BY 3.0. Data by OpenStreetMap, available under the CC BY-SA
plot(openmap(x,path="stamen-terrain-background"))
Map tiles by Stamen Design under CC BY 3.0. Data by OpenStreetMap, available under the CC BY-SA
See mc.bbbike.org/mc
Michelin
mPath = osmTiles(paste(
'http://map3.viamichelin.com/map/mapdirect?map=',
c('light','viamichelin'), '&', sep=''),
xyz='zxy=', suffix =
'&format=png&version=201503191157&layer=background')
africaMichelin = openmap(
africaExtent, path=mPath,
zoom=2,
verbose=TRUE,
crs = crsMerc)
for(D in names(africaMichelin)) {
plot(africaMichelin[[D]])
mtext(D, side=3, line=-2, outer=FALSE)
}
Stamen retina
sPath = osmTiles('stamen-toner',
suffix = '@2x.png')
africaS = openmap(
africaTiles,
buffer=-1,
zoom=attributes(africaTiles)$tiles$zoom+1,
path=sPath, verbose=TRUE)
africaS2 = tonerToTrans(africaS)
plot(africaTiles[['opentopomap']])
plot(africaS2, add=TRUE)
mtext(sPath, side=3, line=-2, outer=FALSE)
Komoot, Yandex, ESRI, F4map, and Sigma
otherPaths = c(
'https://a.tile.hosted.thunderforest.com/komoot-2/',
'https://sat01.maps.yandex.net/tiles?l=sat&v=1.35.0&',
'https://vec02.maps.yandex.net/tiles?l=map&v=4.40&',
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/tile/',
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/',
'https://services.arcgisonline.com/ArcGIS/rest/services/Ocean/World_Ocean_Base/MapServer/tile/',
'https://tile2.f4map.com/tiles/f4_2d/',
'http://tiles1.sigma-dc-control.com/layer8/')
africaExtra = openmap(
africaExtent, path=otherPaths,
zoom=2,
verbose=TRUE,
crs = crsMerc)
Spaths = unique(
gsub("(red|green|blue|trans)$", "",
names(africaExtra), ignore.case=TRUE)
)
for(D in Spaths) {
oneTileName = grep(paste("^", D, "$", sep=""),
names(africaExtra), value=TRUE)
threeTilesName = grep(paste("^", D,
"([rR]ed|[gG]reen|[bB]lue)$", sep=""),
names(africaExtra),value=TRUE)
if(length(threeTilesName)==3) {
plotRGB(africaExtra[[threeTilesName]])
} else {
plot(africaExtra[[oneTileName]])
}
mtext(D, side=3, line=-2, outer=FALSE)
}