tidyverse / ggplot2

An implementation of the Grammar of Graphics in R
https://ggplot2.tidyverse.org
Other
6.5k stars 2.02k forks source link

Add 3D capabilities #1113

Closed flying-sheep closed 9 years ago

flying-sheep commented 9 years ago

For techniques like spectral decomposition (PCA, diffusion maps, …), the actual units on the axes are less important than visual closeness and separation.

A 3D→2D projection of three principal/diffusion components is therefore desirable and more useful than a plot matrix (like ggpairs)

hadley commented 9 years ago

Unfortunately this is outside the scope of ggplot2

flying-sheep commented 9 years ago

and why, if i may ask?

lefft commented 6 years ago

interesting -- anyone have any insight on the main challenges for representing 3d surfaces or scatterplots in ggplot2::??

from a user perspective, the syntax could be straightforward:

ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, z=Petal.Length, color=Species) + 
  geom_3d_scatter()

but obviously this says nothing about how complicated the implementation would have to be!

thomasp85 commented 6 years ago

Have a look at https://github.com/AckerDWM/gg3D

But be aware that there are probably reasons beyond technical for the lack of 3D support in ggplot2

flying-sheep commented 6 years ago

“out of scope” includes the possibility of a technical reason in my eyes, as well as “it’s too hard to implement” and “it inflates the API too much”.

lock[bot] commented 6 years ago

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/