Re: [R] Scatterplot3d-proposal

From: Atte Tenkanen <attenka_at_utu.fi>
Date: Tue 23 Jan 2007 - 13:29:02 GMT

>
>
> Duncan Murdoch wrote:
> > On 1/23/2007 6:38 AM, Atte Tenkanen wrote:
> >> Hi,
> >>
> >> Does somebody know if there is some trick to betoken the
> starting points ("on the floor") of the vertical lines in
> scatterplot3d-plots.
> >> I'd prefer something like that one in the example here
> >>
> >> http://users.utu.fi/attenka/proposal3d.jpg
> >>
> >> If this is not possible, could this option be added? Sometimes
> it is not easy to distinguish objects behind the others and for
> instance in this example picture the case nr. 21 is important.
> >
> > scatterplot3d() returns a list of functions which could help with
> this,
> > in particular the points3d function.
>
> Right, or rather use the returned function xyz.convert, as in:
>
> s3d <- scatterplot3d(1:10, 1:10, 1:10, type="h")
> s3d$xyz.convert(5, 5, 0)
>
> Now you got coordinates for the point on the plane with z=0
> projected
> from (5,5,5). It should be easy now to add circles, ellipses or
> whatever
> you like.
>
> Uwe Ligges
>

Thanks! This seems to work.

http://users.utu.fi/attenka/ellipses_in3Db.png

I only had to change that (5,5,0) to (5,5,0.4). I'm not sure about the reason, is it because of the minimum of x- or y-coordinate in my plot or what?

Atte



R-help@stat.math.ethz.ch 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. Received on Wed Jan 24 00:39:15 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 23 Jan 2007 - 16:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.