plot2d: Plot a 2D projection of a 3D image

Description Usage Arguments Examples

View source: R/radial_bridge.R

Description

Plot a 2D projection of a 3D image

Usage

1
2
3
4
5
6
7
8
9
plot2d(x, title = "Sample", show_max = FALSE, ...)

## S3 method for class 'brain'
plot2d(x, title = "Sample", show_max = FALSE, ...)

## S3 method for class 'tbl_brain'
plot2d(x, title = "Sample", show_max = FALSE, ...)

plot2d_plane(x, plane = c("x", "z"), show_max = FALSE, ...)

Arguments

x

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

show_max

Plot the maximum frequency or the average?

...

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

plane

a character vector of length 2 indicating the plane to project to (x, y, z)

Examples

1
2
3
4
5
6
7
8
file <- "~/Data/barresi/wildtype/AT/AT_1_Probabilities.h5"
## Not run: 
tidy_brain <- read_h5(file) %>%
  tidy()
plot2d(tidy_brain, show_max = TRUE)
plot2d(tidy_brain)

## End(Not run)

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