| set_edges | R Documentation |
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'.
set_edges(p, colour = "black", width = 1)
p |
A 'ggseg3d' widget or 'ggsegray' rgl object. |
colour |
string. Edge colour (hex or named color). Set to NULL to hide edges. |
width |
numeric. Width of edge lines (default: 1). Note: line width > 1 may not render on all systems due to WebGL limitations. |
The input object (modified), for piping.
'r lifecycle::badge("experimental")'
## Not run:
ggseg3d(hemisphere = "left", edge_by = "region") |>
set_edges("black") |>
pan_camera("left lateral")
ggsegray(hemisphere = "left", edge_by = "region") |>
set_edges("red", width = 2) |>
pan_camera("left lateral")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.