pan_camera: Pan camera position of ggseg3d plot

Description Usage Arguments Value Examples

View source: R/additions.R

Description

The default position for plotly mesh plots are not satisfying for brain plots. This convenience function can pan the camera to lateral or medial view, or to custom made views if you are plotly savvy.

Usage

1
pan_camera(p, camera, aspectratio = 1)

Arguments

p

plotly object

camera

string or list.

aspectratio

camera aspect ratio

Value

plotly object

Examples

1
2
3
library(dplyr)
ggseg3d() %>%
   pan_camera("right lateral")

ggseg3d documentation built on June 1, 2021, 9:08 a.m.