[R] table with values as dots in increasing sizes

Gabor Grothendieck ggrothendieck at gmail.com
Fri Nov 5 12:36:43 CET 2010


On Fri, Nov 5, 2010 at 4:45 AM, fugelpitch <jonas at runtimerecords.net> wrote:
>
> I was just thinking of a way to present data and if it is possible in R.
>
> I have a data frame that looks as follows (this is just mockup data).
>
> df
> location,"species1","species2","species3","species4","species5"
> "loc1",0.44,0.28,0.37,-0.24,0.41
> "loc2",0.54,0.62,0.34,0.52,0.71
> "loc3",-0.33,0.75,-0.34,0.48,0.61
>
> location is a factor while all the species are numerical vectors.
>
> I would like to present this as a table (or something that looks like a
> table) but instead of the numbers I would like to present circles (pch = 19)
> that increases in size with increasing number. Is it also possible to make
> it change color if the value is negative. (E.g. larger blue circles
> represent larger +values while larger red circles represent larger -values)?
>

This was recently discussed on the list.  See the thread that begins here:
https://stat.ethz.ch/pipermail/r-help/2010-November/258453.html


-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



More information about the R-help mailing list