Skip to content

Overlaying graphics

2 messages · Takatsugu Kobayashi, Satoshi Takahama

#
Rusers:

This is a very fundamental and silly question. How can I overlay 
different maps on the same x and y scales? I do neither want to change X 
and Y axes nor show different x and y ticks on top of each other.

Thanks

Taka
Indiana University
#
Not pretty, but you could possibly try:

# first map
map(#arguments#)
xylim = par("usr")

# second map
out = map(#arguments#, plot=FALSE)
par(xaxs="i",yaxs="i")
plot.window(xlim=xylim[1:2],ylim=xylim[3:4])
polygon(out)
--- Takatsugu Kobayashi <tkobayas at indiana.edu> wrote: