Skip to content
Prev 176117 / 398503 Next

axis colours

On 04/04/2009 5:13 PM, Umesh Srinivasan wrote:
You can use box() to draw a box.  So you can get yellow axes and box using

plot(1,1, axes=F)
axis(1, col="yellow")
axis(2, col="yellow")
box(col="yellow")

par() doesn't have an option for this.  plot() will use the default 
par("col") setting for the box, but that also affects the points being 
drawn.

Duncan Murdoch