Skip to content
Back to formatted view

Raw Message

Message-ID: <loom.20110420T024201-400@post.gmane.org>
Date: 2011-04-20T00:42:55Z
From: Ben Bolker
Subject: Simple question about symbols()

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])