David Winsemius <dwinsemius <at> comcast.net> writes:

> 
> 
> On Apr 19, 2011, at 10:51 PM, murilofm wrote:
> 
> > Thanks for the answer; I see that col=c("blue","red")[inv$c+1]  
> > creates a
> > vector of "red" and "blue" associated with the binnary c.
> > But still I got everything red.
> 
> If you want tested solution, submit test data.
> 

  David also suggests (off-lists) that you use "bg" instead of "col" as 
the argument name.  (Another strategy is to go to ?symbols
and search for "colour" -- I wouldn't expect a new user
to guess the c("blue","red")[inv$c+1] stuff, but you probably
could go to the help page and figure out that the appropriate
argument name is "bg" ...)

______________________________________________
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