[Rd] using a factor as col argument in plot:

From: Christoph Buser <buser_at_stat.math.ethz.ch>
Date: Fri 18 Nov 2005 - 16:38:22 GMT


Dear R core team

Using the following code produces an empty plot (similar to col = NA):

> plot(1:9, col = factor(rep(1:3,3), labels = c("red", "blue", "black")))

My question: Shouldn't one get at least a warning (or an error)

             if one tries to use a factor as col argument?

Thanks for an answer.

Regards,

Christoph Buser



Christoph Buser <buser@stat.math.ethz.ch> Seminar fuer Statistik, LEO C13
ETH (Federal Inst. Technology)	8092 Zurich	 SWITZERLAND
phone: x-41-44-632-4673		fax: 632-1228

http://stat.ethz.ch/~buser/

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Nov 19 03:42:02 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:33 GMT