[R-sig-Geo] making an inset in a map figure
GD
grothered at gmail.com
Fri Sep 13 07:58:29 CEST 2013
# Something like
library(maptools)
data(wrld_simpl)
plot(wrld_simpl,border=NA,col='blue',axes=T, xlim=c(100,130),
ylim=c(-40,30))
par(plt = c(0.2, 0.5, 0.6, 0.8), new = TRUE)
plot(wrld_simpl,border=NA,col='green',bg='white',axes=F)
# If you put axes on the inset, they will fall over the background map --
but, you could fix that by drawing a white rectangle there first (e.g. using
rect).
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/making-an-inset-in-a-map-figure-tp7584585p7584607.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
More information about the R-sig-Geo
mailing list