R-xy scatter plot in 3d using density

I want to visualize xy scatter in 3d using density / overlap as z values. I guess it will be like using alpha as the z axis - more overlap = higher than z. Suggestions? Perhaps using cloud () in the lattice library?

+5
source share
2 answers

There are many 2d density functions:

MASS::kde2d
fields::smooth.2d
hexbin::hexbin

In general, visualization of 3d point clouds is rather complicated. Pseudo 3d with surfaces is good, but the points are not displayed with sufficient depth. If you really want to try, use the package rglso you can turn it around.

+5
source

rgl . rgl . /.

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

enter image description here

+6

All Articles