[R] Overlaying graphics

Stephen Tucker brown_emu at yahoo.com
Sat Feb 24 11:54:05 CET 2007


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:

> 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
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list