Learn R Programming

ggseg3d (version 2.0.0)

set_orthographic: Enable orthographic camera for ggseg3d plot

Description

Uses orthographic projection instead of perspective. This eliminates perspective distortion and ensures consistent sizing across all views.

Usage

set_orthographic(p, ortho = TRUE, frustum_size = 220)

Value

ggseg3d widget object with updated camera mode

Arguments

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.

Examples

Run this code
if (FALSE) {
ggseg3d() |>
  set_orthographic()
}

Run the code above in your browser using DataLab