I need a help in the following code. I could not find any hint at the help
files
m <- c( 58, 47, 51, 57, 48)
plot(1:5, m, pch=19, col=1:5, axes=FALSE)
axis(1, at=1:length(m), labels=LETTERS[1:5], col.axis=2)
The labels A B C D E appear in this case with the red color.
What I really want is that thay get the same color as the circles, but if I
try the line
axis(1, at=1:length(m), labels=LETTERS[1:5], col.axis=1:5)
I get the message " the graphic parameter "col.axis" has the wrong length".
Is there any way to circumvent it?
Thank you very much
Enio Jelihovschi
UESC, Brasil
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.