Message-ID: <1379051909635-7584607.post@n2.nabble.com>
Date: 2013-09-13T05:58:29Z
From: GD
Subject: making an inset in a map figure
In-Reply-To: <5E1B812FAC2C4A49B3D99593B5A521910D437134@PRDEXMBX-08.the-lab.llnl.gov>
# 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.