Re: [R] Simple question about symbols()

From: Ben Bolker <bbolker_at_gmail.com>
Date: Wed, 20 Apr 2011 00:42:55 +0000

murilofm <murilofmoraes <at> gmail.com> writes:

>
> I'm new to R and i'm having some trouble with a bubble chart.
> Basically I have 3 series (a,b,c), but the third one is a binnary variable
> (assumes only 0 or 1 to the entire data).
> How can I use these binnary information to make 2 different colours in a
> bubble chart?. I.e., I'm using this code:
>

  Probably:

symbols(inv$a, inv$b, circles=radius, inches=0.35, fg="white",

   bg="red", xlab="aa", ylab="bb", add=TRUE,    col=c("blue","red")[inv$c+1])



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 Wed 20 Apr 2011 - 00:47:56 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 Wed 20 Apr 2011 - 03:40:32 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