[R] 3D scatter plot with projections

David Winsemius dwinsemius at comcast.net
Sat Jan 8 18:45:00 CET 2011

On Jan 8, 2011, at 11:21 AM, Gang Chen wrote:

> Thanks a lot for the quick help! How to project the scatter plot  
> with the
> diagonal line to the three planes with scatterplot3d? I could not  
> find such
> an example demonstrating that in the vignette.

I'm puzzled. If you have (x1, y1, z1) and (x2, y2, z2) as starting and  
ending points, Deducing the three projected segments , i.e. the  
starting and ending points of the projections on the xy, xz and yz  
planes (z = 0, y=0, and x= 0 respectively) would seem to be trivial.  
So maybe I just don't understand.  What part is offering difficulty?  
Please show your code so far.

> Thanks,
> Gang
> 2011/1/8 Uwe Ligges <ligges at statistik.tu-dortmund.de>
>> On 08.01.2011 16:38, Gang Chen wrote:
>>> I want to create some 3D scatter plot with a diagonal line. In  
>>> addition,
>>> I'd
>>> like to have those points plus the diagonal line projected to  
>>> those three
>>> planes (xy, yz and xz). Which package can I use to achieve this,
>>> scatterplot3d or something else?
>> Yes, scatterplot3d, rgl, and maybe also others.
>> For looking at it interactively I always prefer rgl, for statical
>> representations (e.g. printing) scatterplot3d can be used with all  
>> known R
>> devices.
>> Best,
>> Uwe Ligges
>> Thanks,
>>> Gang
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
West Hartford, CT

More information about the R-help mailing list