set_orthographic: Enable orthographic camera for ggseg3d plot

View source: R/additions.R

set_orthographicR Documentation

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)

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.

Value

ggseg3d widget object with updated camera mode

Examples

## Not run: 
ggseg3d() |>
  set_orthographic()

## End(Not run)

ggseg3d documentation built on Feb. 21, 2026, 1:06 a.m.