[Rd] Wishlist: axis( ) could take vector of colors (PR#7930)

epurdom@stanford.edu epurdom at stanford.edu
Fri Jun 10 23:52:33 CEST 2005


Hi,
This is not a bug, but a simple enhancement suggestion: that axis( ) also 
allow option "col" to take a vector of colors equal to the length of 
"labels". Currently it allows it, in the sense that there is no error 
message, but the function will use just the first element of the vector.

Example
 > plot(1:5,exp(1:5),axes=F,type="o")
 > axis(1,col=c(rep("red",2),rep("blue",3)))
gives all red axis notation.

Thanks,
Elizabeth Purdom
(Windows XP, R 2.1.0)



More information about the R-devel mailing list