[R] plot: rug colors
Brian Smith
bsmith030465 at gmail.com
Sun May 24 13:47:51 CEST 2015
Hi,
I wanted the rug (in plot) to have different colors. For example:
vals1 <- sample(1:100,5)
vals2 <- sample(1:100,5)
rugcols <- c("red","blue","brown","red","yellow")
plot(vals1,vals2)
rug(vals1,col=rugcols,lwd=2)
However, with this code I only get 'red' for all the ticks. Is there a way
I can get the different colors for rug?
thanks!
[[alternative HTML version deleted]]
More information about the R-help
mailing list