3D Interactive Plot
Here's a 3D interactive plot I like from the ebook "R Fundamentals & Graphics". I've just started learning BLENDER and want to see if I can transfer these 3D images to BLENDER and save it as a .COLLADA file. Has anyone ever done that? Apple has a software called iBook Author which can accommodate interactive 3D images in COLLADA format in ebooks. Their promo video is really cool!
Here's a 3D interactive plot I like from the ebook "R Fundamentals & Graphics". I've just started learning BLENDER and want to see if I can transfer these 3D images to BLENDER and save it as a .COLLADA file. Has anyone ever done that? Apple has a software called iBook Author which can accommodate interactive 3D images in COLLADA format in ebooks. Their promo video is really cool!
Code:
library(rgl)
x <- seq(-3,3, length=50)
y <- x
f <- function (x,y) {x*exp (-x^2-y^2)}
z <- outer (x,y,f)
plot3d (x,y,z, box=F, axes=F, xlab="",ylab="",zlab="")
surface3d (x,y,z,col=heat.colors(30))