[R-sig-Geo] WMS map in a multiple map outlook

Hugo Costa hugo@gco@t@ @end|ng |rom gm@||@com
Fri Oct 25 16:06:35 CEST 2019


Dear list

I'm interested in plotting multiple maps, in which one of them is WMS. For
example, how can we plot the WMS in the right-down slot produced from the
code below?
Thanks

library(raster)
library(leaflet)
logo <- system.file("pictures/Rlogo.jpg", package="rgdal")[1]
par(mfrow=c(2,2))
plot(raster::brick(logo)[[1]])
plot(raster::brick(logo)[[2]])
plot(raster::brick(logo)[[3]])
# the next map is plotted alone rather than together with the R logo.
leaflet() %>% addTiles() %>% setView(-93.65, 42.0285, zoom = 17)

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list