Re: [R] 2d plot with modification of plotting symbol to indicate third dimension.

2011-01-13 Thread Bert Gunter
Duncan: I must humbly disagree. Here's the problem: in order to accurately represent the value, the point = circle _area_ must be proportional to the value. That is, the eye sees the areas, not the radii, as the point size. A delightful reference on this is Howard Wainer's 1982 or so (can't

Re: [R] 2d plot with modification of plotting symbol to indicate third dimension.

2011-01-13 Thread Prof Brian Ripley
On Thu, 13 Jan 2011, Bert Gunter wrote: Duncan: I must humbly disagree. Here's the problem: in order to accurately represent the value, the point = circle _area_ must be proportional to the value. That is, the eye sees the areas, not the radii, as the point size. A delightful reference on this

Re: [R] 2d plot with modification of plotting symbol to indicate third dimension.

2011-01-13 Thread Gabor Grothendieck
On Wed, Jan 12, 2011 at 9:33 PM, John Sorkin jsor...@grecc.umaryland.edu wrote: I would like to plot 3-dimensional data on a two-dimensional scatter-plot. Is there a way I can automatically modify the plot symbol (e.g. changing size or color) to indicate the value of a third variable? E.g. How

Re: [R] 2d plot with modification of plotting symbol to indicate third dimension.

2011-01-13 Thread Jim Holtman
have you taken a look at the hexbin package? 'cex' , 'pch' 'col' will let you make the changes Sent from my iPad On Jan 12, 2011, at 21:33, John Sorkin jsor...@grecc.umaryland.edu wrote: I would like to plot 3-dimensional data on a two-dimensional scatter-plot. Is there a way I can

[R] 2d plot with modification of plotting symbol to indicate third dimension.

2011-01-12 Thread John Sorkin
I would like to plot 3-dimensional data on a two-dimensional scatter-plot. Is there a way I can automatically modify the plot symbol (e.g. changing size or color) to indicate the value of a third variable? E.g. How can I plot weight vs. age and indicate the value of muscle mass for each value

Re: [R] 2d plot with modification of plotting symbol to indicate third dimension.

2011-01-12 Thread Sarah Goslee
You don't give an example, but in general you can use a vector for cex with the values proportional to the third variable. Same goes for color: col can be a vector, not just a single value. This has been discussed before on-list, and fairly recently. Sarah On Wed, Jan 12, 2011 at 2:19 PM, John

Re: [R] 2d plot with modification of plotting symbol to indicate third dimension.

2011-01-12 Thread Greg Snow
Look at the symbols function for some options of doing what you suggest (you can also do a search for bubble plot for a couple of other implementations). If you want to go a bit further than what symbols does for you then look at the my.symbols function in the TeachingDemos package. --

Re: [R] 2d plot with modification of plotting symbol to indicate third dimension.

2011-01-12 Thread Bert Gunter
Google on R Graph Gallery to find examples with code. You can also almost certainly RSiteSearch() on appropriate keys to find a pre-existing function (which someone may provideyou on the list). Also: ?symbols -- Bert On Wed, Jan 12, 2011 at 11:19 AM, John Sorkin jsor...@grecc.umaryland.edu

[R] 2d plot with modification of plotting symbol to indicate third dimension.

2011-01-12 Thread John Sorkin
I would like to plot 3-dimensional data on a two-dimensional scatter-plot. Is there a way I can automatically modify the plot symbol (e.g. changing size or color) to indicate the value of a third variable? E.g. How can I plot weight vs. age and indicate the value of muscle mass for each value

Re: [R] 2d plot with modification of plotting symbol to indicate third dimension.

2011-01-12 Thread Duncan Murdoch
On 11-01-12 9:33 PM, John Sorkin wrote: I would like to plot 3-dimensional data on a two-dimensional scatter-plot. Is there a way I can automatically modify the plot symbol (e.g. changing size or color) to indicate the value of a third variable? E.g. How can I plot weight vs. age and

Re: [R] 2d plot with modification of plotting symbol to indicate third dimension.

2011-01-12 Thread Jim Lemon
On 01/13/2011 06:19 AM, John Sorkin wrote: I would like to plot 3-dimensional data on a two-dimensional scatter-plot. Is there a way I can automatically modify the plot symbol (e.g. changing size or color) to indicate the value of a third variable? E.g. How can I plot weight vs. age and