[Rd] xaxs disactivated when asp=1 in plots (PR#13971)

francois_birgand at ncsu.edu francois_birgand at ncsu.edu
Fri Sep 25 22:55:17 CEST 2009


Full_Name: François Birgand
Version: 2.9.0
OS: windows xp
Submission from: (NULL) (152.1.16.161)


When I type this sequence:

x11()
Ylim<-c(0,14)
Xlim<-c(0,14)
plot(0,0,xlim=Xlim,ylim=Ylim,col="white",main="",xlab="",ylab="",bty="n",xaxt="n",yaxt="n",xaxs="i",yaxs="i",asp=1)
abline(h=c(0,14),lwd=2,col="grey")
abline(v=c(0,14),lwd=2,col="grey")
par(new=TRUE)
abline(h=seq(0,14,by=0.2),lty=3,col="grey")
abline(h=seq(0,14,by=1),lty=1,col="grey")
abline(v=seq(0,14,by=0.2),lty=3,col="grey")
abline(v=seq(0,14,by=1),lty=1,col="grey")
par(new=TRUE)

only yaxs="i" is taken into account while xaxs="i" is ignored.  When I remove
asp=1, xaxs="i" is activated again.
Small bug but kind of bothersome...!!

Congratulations for the great work you guys are doing!
François



More information about the R-devel mailing list