[R-sig-Geo] Problems with mapmisc::insetMap()

Patrick Brown patrick.brown at utoronto.ca
Thu Feb 25 18:46:53 CET 2016


Hello all, my first post here!


mapmisc (1.4.8 from r-forge) now allows


require(rgdal)
require(raster)
require(mapmisc)
nica <- getData("GADM", country="NIC", level=0)
nicabg <- openmap(nica, path="landscape")
map.new(nicabg, 0.7,mar=c(2, 2, 2, 0) + 0.1)
plot(nicabg,axes=TRUE)
plot(nica,add=TRUE)
loc = insetMap(nica,pos=c(-85,12), width=0.3, col=NA, lty=0)
points(loc)

p



More information about the R-sig-Geo mailing list