Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R- xy scatter plot in 3d using density

Tags:

plot

r

I want to visualize an x-y scatter in 3d, using the density/overlaps as z values. I guess this would be like using alpha as a z-axis - more overlap = higher z. Suggestions? Perhaps using cloud() in lattice library?

like image 382
SFun28 Avatar asked May 12 '11 01:05

SFun28


1 Answers

I use rgl for 3D visualization. You can rotate the image in rgl window using your mouse. Wheel zooms in/out.

example(plot3d)
rgl.bg(color = "black") # Space, the final Frontier.

enter image description here

like image 120
Roman Luštrik Avatar answered Oct 06 '22 08:10

Roman Luštrik