plot3d.tbl_brain: Plot a 3D image of a brain

Description Usage Arguments Examples

View source: R/radial_bridge.R

Description

Plot a 3D image of a brain

Usage

1
2
3
4
5
## S3 method for class 'tbl_brain'
plot3d(x, ...)

## S3 method for class 'brain'
plot3d(x, ...)

Arguments

x

vectors of points to be plotted. Any reasonable way of defining the coordinates is acceptable. See the function xyz.coords for details.

...

additional parameters which will be passed to par3d, material3d or decorate3d.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
file <- "~/Data/barresi/AT_1_Probabilities.h5"
## Not run: 
if (require(dplyr)) {
  tidy_brain <- file %>%
    read_h5() %>%
    tidy()
  plot3d(tidy_brain)
}

## End(Not run)
file <- "~/Data/barresi/AT_1_Probabilities.h5"
## Not run: 
brain <- read_h5(file)
plot3d(brain)

## End(Not run)

beanumber/cranium documentation built on Oct. 17, 2019, 11:03 a.m.