ggseg3d 2.1.1
CRAN release: 2026-04-22
Bug fixes
- Cortical hemispheres are now rendered anatomically side-by-side (LH at negative x, RH at positive x, medial edges at the midline) regardless of the mesh source. Previously, both hemispheres overlapped at the origin because
ggseg.formatsinflated meshes andggseg.meshespial/white/etc. surfaces arrived in different axis conventions.resolve_brain_mesh()now normalises to the sharedx = LR,y = AP,z = SIframe and separates hemispheres atx = 0. -
set_positioning()no longer wrongly shifts subcortical meshes whose region names happen to contain “Left”/“Right” (e.g.Left-Thalamus); it only repositions cortical meshes named"<hemi> <surface>". -
add_glassbrain()warns and skips when the widget already contains a flat (2D) mesh such as a cerebellar flatmap, since flatmaps share no coordinate frame with anatomical 3D meshes. -
add_glassbrain()now defaults tosurface = "inflated"so it works withoutggseg.meshesinstalled (inflated ships withggseg.formats).
Documentation
- Replaced
\dontrun{}wrappers in widget-construction examples with executable code so examples run underR CMD checkand render inline in pkgdown. Examples that requirergl(Suggests) are now gated with@examplesIf rlang::is_installed("rgl"). - Added
LICENSE.notedocumenting the bundled Three.js and OrbitControls libraries and credited their authors inAuthors@R.
ggseg3d 2.1.0
CRAN release: 2026-04-09
Cerebellar atlas support
- New
cerebellar_atlasclass withprepare_brain_meshes.cerebellar_atlas()method for rendering SUIT cerebellar surfaces with vertex-based colouring. - Mixed vertex+mesh rendering for deep cerebellar nuclei: the SUIT surface renders at 30% opacity with opaque per-region meshes for deep structures.
-
surface_opacityparameter controls cerebellar surface transparency when deep nuclei are present. - Cortical mesh data moved to the ‘ggseg.meshes’ package, removing bundled
sysdata.rda.
ggseg3d 2.0.0
CRAN release: 2026-02-20
Major changes
- Complete rewrite using htmlwidgets with Three.js instead of plotly
- New pipe-friendly API with chainable addition functions
- Support for unified brain_atlas format from ggseg.formats package
New features
-
set_background()- set background colour -
set_legend()- control legend visibility -
set_dimensions()- set widget width and height -
set_edges()- add region boundary edges -
set_flat_shading()- disable lighting for exact colours -
set_orthographic()- use orthographic projection -
pan_camera()- position camera at standard anatomical views -
add_glassbrain()- add translucent brain surface overlay -
snapshot_brain()- save widget as PNG image -
edge.byparameter for edge grouping by data columns
ggseg3d 1.6.3
CRAN release: 2021-06-01
- Prepare for CRAN
- Remove white surface from
dk_3dto reduce size and pass CRAN checks - Update github urls to new org
ggseg3d 1.5
- Changed atlas.info to function
atlas_info() - Changed brain.pal to function
brain_pal() - Reduced code necessary for
brain_pals_info - Simplified
display_brain_pal() - Moved palettes of ggseg.extra atlases to ggseg.extra package
- Added a
NEWS.mdfile to track changes to the package - Changes all
dataoptions to.datato decrease possibility of column naming overlap - Added compatibility with
groupeddata.frames - Reduced internal atlases, to improve CRAN compatibility
- Added function to install extra atlases from github easily
- Changes vignettes to comply with new functionality