Black Lives Matter. Please consider donating to Black Girls Code today.

Increase Default Zoom in 3D Scatter Plot in R

I am able to change the initial position of the plot with the following code: camera = list(eye = list(x = 2.5, y = 0, z = 0)). But in the documentation I did’t found anything to increase the default zoom of the plot. Does anyone know how to do it?

In addition to | y | z) you could change | y | z).
But I think you could achieve what you mentioned by increasing the 3 vectors of layout.scene.aspectratio.(x | y | z).

1 Like

Thank you a lot. Using layout.scene.aspectratio.(x | y | z) works great.

1 Like