I've given this solution a try over the past few days. And it works very
nicely. Using the layout() function I have been able to plot Sao as an inset
map on a larger map of Africa.
Thanks for the tips.
On 10/16/2011 10:35 AM, Christopher S. Fowler wrote:
I struggled with a similar issue
I struggled with a similar issue plotting the U.S. with Hawaii and Alaska as
insets. My result is far from perfect and my coding technique is likely
awful, but it might provide some inspiration...
http://csfowler.com/drupal/US-with-inset
On Sat, Oct 15, 2011 at 8:36 AM, Edzer Pebesma
Hello List,
I have a map of Africa I plot using spplot(). In addition, I have a second map
of Sao Tome (a small island). I want to add this second map to the first as an
inset because it would otherwise not be visible at the same scale of the
continent.
This is what I currently do: I save
you might want to look at maptools::elide, to shift Sao to the Africa
map, and perhaps rbind() the two objects into a single object for spplot.
Alternative, pass Sao in sp.layout, but than you'd have to do the
colouring yourself, which might be fine if you need to do it just once.
On