[R] graphical parametres...

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Dec 8 13:03:14 CET 2003


Anne Piotet wrote:

> Hi...it is probably trivial, but I do not know how to do the following:
> I want the output of a xy plot to be plotted in different colors according to a given condition ...
> I want to plot temperature dependency of flow stress ; for some (rare) occurencies I've got a special condition (chemical composition change) , and I want these points to appear on the same graph...I do know how to change the appearance of all the plots with the par() command or the points()...
> 
> Thanks 
> Anne
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help

I guess you are looking for something like:

  y <- sample(1:10)
  plot(1:10, y, col = ifelse(y > 5, "red", "black"))

Uwe Ligges




More information about the R-help mailing list