R gWidgets embeds "rgl" 3D graphics into gWidgets2 ggraphics device

Can I embed "rgl" 3D graphics in the gWidgets2 ggraphics device? For example,

library(gWidgets2)
library(rgl)

w <- gwindow("brushing example", visible=FALSE)
g <- ggroup(cont=w)
pg <- gnotebook(cont=g, expand=TRUE)
dev1 <- ggraphics(cont=pg)

visible(w) <- TRUE

visible(dev1) <- TRUE   
plot.new()  

x <- sort(rnorm(1000))
y <- rnorm(1000)
z <- rnorm(1000) + atan2(x,y)
plot3d(x, y, z, col=rainbow(1000))

      

Is it possible to place a 3D graph inside a gnotebook window?

+1
r gwidgets


source to share


No one has answered this question yet

See similar questions:

3
R: how to embed 3D graphics generated by "rgl" into "gGidgets ggraphics device"?

or similar:

485
Plot two graphs in one graph in R
3
R: how to embed 3D graphics generated by "rgl" into "gGidgets ggraphics device"?
2
Can I embed acinonyx graph in gWidgets (gWidgetsRGTK2 or gWidgetsQt) in R?
1
R creates a different result after putting IO into the file
1
Graphics device - gWidgets on OSX
0
GWidgets graphs versus window size
0
R rgl text3d () artifacts block objects and change the extent of the graph
0
How do I save the plot using gWidgets?
0
built-in function in gWidgets
-1
Source code save plot R; gWidgets



All Articles
Loading...
X
Show
Funny
Dev
Pics