Skip to content

axis colours

4 messages · Umesh Srinivasan, Uwe Ligges, Duncan Murdoch

#
Umesh Srinivasan wrote:
I'd set
par(bg = "black", fg = "yellow")
at first and be happy, but if there is some reason why you want specific 
things to happen, it might make sense to tell us what exactly you are 
looking for.

Uwe Ligges
#
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