| set_orthographic | R Documentation |
Uses orthographic projection instead of perspective. This eliminates perspective distortion and ensures consistent sizing across all views.
set_orthographic(p, ortho = TRUE, frustum_size = 220)
p |
ggseg3d widget object |
ortho |
logical. Enable orthographic mode (default: TRUE) |
frustum_size |
numeric. Size of the orthographic frustum. Controls how much of the scene is visible. Default 220 works well for brain meshes. Use the same value across all views for consistent sizing. |
ggseg3d widget object with updated camera mode
## Not run:
ggseg3d() |>
set_orthographic()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.