[R] Odp: random colour

From: Petr PIKAL <petr.pikal_at_precheza.cz>
Date: Mon, 14 Jun 2010 10:54:41 +0200

Hi

Would you like to know which colour is for which curve? If yes use parameter col=1:5 in your plotting call. If not you can try col = sample(colours(), 5) instead

Regards
Petr

r-help-bounces_at_r-project.org napsal dne 14.06.2010 07:05:43:

> Sir,
> I want to plot 5 curve on a single graph. I want to give random colour
on
> it. How can I do this?
>
> Regards,
> Suman Dhara
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_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.



R-help_at_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. Received on Mon 14 Jun 2010 - 08:58:03 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 14 Jun 2010 - 09:00:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive