Hi, Does anyone have an example of making a map figure with an inset, where a portion of the map in the large figure is shown at a larger scale in the inset? Scott Waichler Hydrology Group Pacific Northwest National Laboratory Richland, WA, USA
making an inset in a map figure
7 messages · Waichler, Scott R, Francisco Rodriguez Sanchez, MacQueen, Don +2 more
What a coincidence! I was just having a look at this older message from the list that should solve the problem: https://stat.ethz.ch/pipermail/r-sig-geo/2012-June/015340.html Cheers, Paco El 10/09/2013 17:00, Waichler, Scott R escribi?:
Hi, Does anyone have an example of making a map figure with an inset, where a portion of the map in the large figure is shown at a larger scale in the inset? Scott Waichler Hydrology Group Pacific Northwest National Laboratory Richland, WA, USA
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Dr Francisco Rodriguez-Sanchez Forest Ecology and Conservation Group Department of Plant Sciences University of Cambridge Downing Street Cambridge CB2 3EA United Kingdom http://sites.google.com/site/rodriguezsanchezf
Perhaps use subplot() from the Hmisc package -Don
Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 9/10/13 9:00 AM, "Waichler, Scott R" <Scott.Waichler at pnnl.gov> wrote: >Hi, Does anyone have an example of making a map figure with an inset, >where a portion of the map in the large figure is shown at a larger scale >in the inset? > >Scott Waichler >Hydrology Group >Pacific Northwest National Laboratory >Richland, WA, USA > >_______________________________________________ >R-sig-Geo mailing list >R-sig-Geo at r-project.org >https://stat.ethz.ch/mailman/listinfo/r-sig-geo
1 day later
# 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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20130913/3864e057/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20130913/a34a2364/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20130914/c6c67565/attachment.pl>