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

2005-11-21 Thread Christoph Buser
Dear Prof. Ripley Thank you for your reply and for changing the function in R-devel. I've intended to ask my question in way 2) but I probably have chosen a ambiguous formulation. :-) Regards Christoph Buser -- Christoph Buser <[EMAIL

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

2005-11-18 Thread Prof Brian Ripley
On Fri, 18 Nov 2005, Christoph Buser wrote: > Dear R core team and R-devel-listers. > 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

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

2005-11-18 Thread Christoph Buser
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