Adds a translucent brain on top of a ggseg3d plot to create a point of reference, particularly important for subcortical plots.
add_glassbrain( p, hemisphere = c("left", "right"), colour = "#cecece", opacity = 0.3 )
p | plotly object |
---|---|
hemisphere | string. hemisphere to plot ("left" or "right") |
colour | string. colour to give the glass brain |
opacity | numeric. transparency of the glass brain (0-1 float) |
plotly object with glassbrain mesh
#> #>#>#> #>#>#> #>#> Warning: `arrange_()` is deprecated as of dplyr 0.7.0. #> Please use `arrange()` instead. #> See vignette('programming') for more help #> This warning is displayed once every 8 hours. #> Call `lifecycle::last_warnings()` to see where this warning was generated.