| set_legend | R Documentation |
For htmlwidget output, toggles legend visibility. For rgl output, draws or removes the legend overlay.
set_legend(p, show = TRUE)
p |
A ggseg3d or ggsegray object |
show |
logical. Whether to show the legend (default: TRUE) |
The input object, modified
## Not run:
ggseg3d() |> set_legend(FALSE)
ggsegray(hemisphere = "left") |> set_legend()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.