Re: [R] 3D plot not working as desired!

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Tue 08 Mar 2005 - 19:36:07 EST

On Tue, 8 Mar 2005 01:50:04 -0600, <kim83@uiuc.edu> wrote :

>Hello R-users!
>
>I am trying to plot 3 vectors (x,y,z) of observations
>generated by mvrnorm in library(MASS).
>
>I tried plot3d in library(djmrgl) and scatterplot3d.
>But these program gives x,y,z axis which do not
>intersect at the origin (0,0,0).

The default in R is to create axes outside the range of your data, and that's what djmrgl and scatterplot3d do. In djmrgl you can control the placement of the axes if you really want them in the middle of your data, but why would you want that??

See the example in ?axis3d for details.
>
>I searched through all the graphics related packages
>for R like xgobi, ggobi, grid and more. Quite
>confusing which one to choose.
>
>Would anyone recommend any way to plot the 3-dimensional
>randomly generated numbers? It would be very nice if it
>can create 95% confidence region ellisoid around the
>observations, just like the 95% confidence ellipse around
>the bivariate normal random numbers.

I don't know a package that does that, but there probably is one.

Duncan Murdoch



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 Received on Tue Mar 08 19:49:18 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:41 EST