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

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

On Tue, 8 Mar 2005 01:50:04 -0600, <> 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 mailing list PLEASE do read the posting guide! 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