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). 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. Thanks in advance! Sangwhan Kim Department of Economics University of Illinois at Urbana-Champaign
3D plot not working as desired!
2 messages · kim83@uiuc.edu, Duncan Murdoch
On Tue, 8 Mar 2005 01:50:04 -0600, <kim83 at 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