Adds coloured outlines around brain regions. This is useful for
highlighting region boundaries in figures. Works with both
htmlwidget (ggseg3d) and rgl (ggsegray) objects. For rgl,
edges must have been computed at creation time via edge_by.
See also
Other brain modifiers:
add_atlas(),
add_glassbrain(),
add_points(),
pan_camera(),
set_background(),
set_dimensions(),
set_flat_shading(),
set_legend(),
set_orthographic(),
set_positioning()
Examples
ggseg3d(hemisphere = "left", edge_by = "region") |>
set_edges("black") |>
pan_camera("left lateral")
if (FALSE) { # \dontrun{
# rgl requires OpenGL; not run in check environments.
ggsegray(hemisphere = "left", edge_by = "region") |>
set_edges("red", width = 2) |>
pan_camera("left lateral")
} # }