I'm using the rgl package with R and trying to set the anti-aliasing option to my 3D plot. The following commands all return the same plot without anti-alias:
plot3d(X1,X2,X3, size=4)
plot3d(X1,X2,X3, size=4, antialias)
plot3d(X1,X2,X3, size=4, antialias=4)
plot3d(X1,X2,X3, size=4, rgl.antialias=3)
How to properly set that option? I've read the manual for rgl but I can't find a clue. I know I can plot using cairo but this as far as I know will not give me interactive 3D plot so I can rotate it.
Thanks!!
The rgl package does allow full antialiasing but this have to be set using open3d
command instead of the plot3d
command. So for the case in question and assuming 4 degrees of AA, first call open3d(antialias=4)
. Next call the plot command plot3d(X1,X2,X3, size=4)
and the full AA plot will appear.