powered by
For htmlwidget output, toggles legend visibility. For rgl output, draws or removes the legend overlay.
set_legend(p, show = TRUE)
The input object, modified
A ggseg3d or ggsegray object
logical. Whether to show the legend (default: TRUE)
if (FALSE) { ggseg3d() |> set_legend(FALSE) ggsegray(hemisphere = "left") |> set_legend() }
Run the code above in your browser using DataLab