Re: [R] Simple question about symbols()

From: David Winsemius <>
Date: Wed, 20 Apr 2011 10:18:38 -0400

On Apr 20, 2011, at 8:45 AM, murilofm wrote:

> The link to the csv file is
> I use the "d" variable to create the radius:
> radius <- sqrt( inv$d/ pi )
> and i tried
> symbols(inv$a, inv$b, circles=radius, inches=0.35, fg="white",
> bg="red", xlab="aa", ylab="bb",
> col=c("blue","red")[inv$c+1])

You should follow the Posting Guide's advice and offer the full code you used to read in that data. It's _not_ comma separated, and for some reason even using read.csv2 to properly read a semi-colon separated file, I also needed to to convert the first two variables from factor to numeric ... please also read the FAQ item on this topic.

Once that was done this "works", since col is _not_ the proper argument for coloring with that function:

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



David Winsemius, MD
West Hartford, CT

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 20 Apr 2011 - 14:22:15 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 - 16:00:31 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive