[R] plot3d origin

Duncan Murdoch murdoch at stats.uwo.ca
Tue Aug 26 20:14:26 CEST 2008


On 8/26/2008 1:05 PM, Chibisi Chima-Okereke wrote:
> Hi all,
> 
> I am trying to do a 3d plot where the x,y,z axes intersects with the origin
> (0,0,0) using the plot3d() funtion in the rgl package without success. I
> looked back at the past archives on this subject and someone suggested using
> djmrgl package. I searched and found it, installed it but when I try to load
> it I get the error ...

Don't use djmrgl.  I don't support it any more.

Use rgl.  If the automatic axes don't work, then use axis3d (or even 
segments3d) to draw them exactly where you want.

For example,

 > points3d(rnorm(100),rnorm(100),rnorm(100))
 > axis3d('x', pos=c(0,0,0))
 > axis3d('y', pos=c(0,0,0))
 > axis3d('z', pos=c(0,0,0))

Duncan Murdoch

> 
> Error in inDL(x, as.logical(local), as.logical(now), ...) :
>   unable to load shared library
> 'C:/PROGRA~1/R/R-27~1.0/library/djmrgl/libs/djmrgl.dll':
>   LoadLibrary failure:  The specified procedure could not be found.
> 
> (Using Windows XP)
> 
> The file is in "C:\Program Files\R\R-2.7.0\library\djmrgl\libs\" and I have
> tried putting this in the PATH variable but it still doesn't make a
> difference.
> 
> I would appreciate it if someone could help me on this.
> 
> Kind Regards
> 
> Chibisi
> 
> 	[[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.



More information about the R-help mailing list