r - save file for 3D graphics applications from plot3d plot -


i have data set 3d points (x,y,z). plotted data set plot3drgl , wish save file in order use file 3d graphics software , show colleagues

library(plot3drgl) data <- data.frame(x=c(23,45,12,67,89,45,32,56,78,32),y=c(89,54,32,67,78,56,44,28,97,65),z=c(1,5,4,3,7,6,3,8,9))         plot3d(z = data$z , x = data$x , y = data$y, pch=21,cex = 0.1,aspect = f,box = f,axes = f) 

i don't know want. output interactive html file

library(rgl) browseurl(paste("file://", writewebgl(dir=file.path(tempdir(), "webgl"), width=500), sep="")) 

enter image description here

or save data csv load , process in app:

write.csv(data, tf <- tempfile(fileext = ".csv")) cat(tf) # c:\windows\temp\rtmpapi4a2\file26dc359447f.csv 

Comments