Re: [R] Drawing circles on a chart

2010-11-03 Thread Santosh Srinivas
@r-project.org Subject: Re: [R] Drawing circles on a chart On Wed, Nov 3, 2010 at 2:07 AM, Santosh Srinivas wrote: > Dear Group, > Inside each cell there should be a circle (sphere preferable) with radius of > mod(data value). The color should be either red or green depending on -ve or

Re: [R] Drawing circles on a chart

2010-11-03 Thread Barry Rowlingson
On Wed, Nov 3, 2010 at 2:07 AM, Santosh Srinivas wrote: > Dear Group, > Inside each cell there should be a circle (sphere preferable) with radius of > mod(data value). The color should be either red or green depending on -ve or > +ve and the intensity should be based on the value of the datapoint

Re: [R] Drawing circles on a chart

2010-11-02 Thread Gabor Grothendieck
On Tue, Nov 2, 2010 at 10:58 PM, Santosh Srinivas wrote: > Thanks Gabor. I used melt to transform the data and plot using balloonplot. > > tData <- structure(list(A = c(0.2, 0.13, 0.05, 0.1, 0.02, 0.18, 0.09, 0.06, >  0.13), B = c(0.15, 0.06, 0.09, 0.02, 0.03, 0.12, 0.01, 0.15, 0.06), C >  = c(-0.

Re: [R] Drawing circles on a chart

2010-11-02 Thread Santosh Srinivas
- rownames(tData) tData.m <- melt(tData) # need to find a way to adjust the color for -ve values balloonplot(tData.m$Period,tData.m$variable,abs(tData.m$value)) -Original Message- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: 03 November 2010 07:51 To: Santosh Srinivas

Re: [R] Drawing circles on a chart

2010-11-02 Thread Gabor Grothendieck
On Tue, Nov 2, 2010 at 10:07 PM, Santosh Srinivas wrote: > Dear Group, > I have the following data matrix which is a timeseries. > >> dput(tData) > structure(list(A = c(0.2, 0.13, 0.05, 0.1, 0.02, 0.18, 0.09, > 0.06, 0.13), B = c(0.15, 0.06, 0.09, 0.02, 0.03, 0.12, 0.01, > 0.15, 0.06), C = c(-0.1,

[R] Drawing circles on a chart

2010-11-02 Thread Santosh Srinivas
Dear Group, I have the following data matrix which is a timeseries. > dput(tData) structure(list(A = c(0.2, 0.13, 0.05, 0.1, 0.02, 0.18, 0.09, 0.06, 0.13), B = c(0.15, 0.06, 0.09, 0.02, 0.03, 0.12, 0.01, 0.15, 0.06), C = c(-0.1, 0, -0.07, -0.06, -0.05, -0.05, -0.06, -0.08, -0.07), D = c(-0.15,