Skip to contents

Plotting

Core 3D visualization function

ggseg3d()
Plot 3D brain parcellations
ggsegray()
Render brain atlas with rgl

Widget Customization

Pipe-friendly functions to modify the 3D widget

add_atlas()
Add another atlas to a ggseg3d plot
add_glassbrain()
Add glass brain to ggseg3d plot
add_points()
Add points to a ggseg3d plot
pan_camera()
Pan camera position of ggseg3d plot
set_background()
Set background color of ggseg3d plot
set_dimensions()
Set widget dimensions
set_edges()
Set region boundary edges
set_flat_shading()
Enable flat shading for ggseg3d plot
set_legend()
Set legend visibility
set_orthographic()
Enable orthographic camera for ggseg3d plot
set_positioning()
Set hemisphere positioning mode
snapshot_brain()
Save ggseg3d widget as image

Mesh Utilities

Work with brain surface meshes

resolve_brain_mesh()
Resolve brain surface mesh

Coordinate Spaces

Convert between plot coordinates and a standard space

mesh_to_mni() mni_to_mesh()
Convert between plot coordinates and a standard space

Shiny

Shiny integration

ggseg3dOutput() renderGgseg3d()
Shiny bindings for ggseg3d
updateGgseg3dCamera()
Update camera in Shiny
updateGgseg3dBackground()
Update background in Shiny