Displaying 1 result from an estimated 1 matches for "hec3d".
Did you mean:
head
2010 Dec 17
2
rgl: coordinating and saving viewpoints, zoom, scale for multiple images
...ation,
zoom and scaling to re-create in another session or another graph....
Which is why I'm asking for R-help.
library(vcdExtra)
HEC <- HairEyeColor[,c(1,3,4,2),]
# graph 1
mosaic3d(HEC)
# hand rotate, scale, then save orientation; make sure rgl window is not
hidden
#snapshot3d("HEC3D-1a.png", top=TRUE)
M1a <- par3d("userMatrix")
# try to make this reproducible, across sessions
#> dput(M1a)
#structure(c(0.890118718147278, 0.105095967650414, -0.44344499707222,
#0, -0.454265862703323, 0.282511830329895, -0.84488445520401,
#0, 0.0364845432341099, 0.95348936319...