Skip to content
Prev 176791 / 398503 Next

Coloring X and Y axis

Gundala Viswanath wrote:
Hi Gundala,

One easy way is to roll your own axes:

plot(1,1,col="red")
xylim<-par("usr")
segments(xylim[1],xylim[3],xylim[2],xylim[3],col="red")
axis(1,col="red")
segments(xylim[1],xylim[3],xylim[1],xylim[4],col="red")
axis(2,col="red")

and this problem has appeared sufficiently often that I think a 
"fullaxis" function will appear in the next version of plotrix.

Jim