Dear R-Users,

I have a vector x <- 1:10 and I would like to produce a dotchart where the
colour of the dot is black if x <= 5 and red otherwise.

If I use

x <- 1:10
dotchart(x, col="black")

then all dots are obviously of black colour. Has anybody in the mailing
list already dealt with a similar task and found a solution?

Thank you very much in advance for any help.

Marco

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to