image.brain: Plot a slice of a 3D image

Description Usage Arguments Examples

View source: R/radial_bridge.R

Description

Plot a slice of a 3D image

Usage

1
2
## S3 method for class 'brain'
image(x, z = NULL, ...)

Arguments

x

locations of grid lines at which the values in z are measured. These must be finite, non-missing and in (strictly) ascending order. By default, equally spaced values from 0 to 1 are used. If x is a list, its components x$x and x$y are used for x and y, respectively. If the list has component z this is used for z.

z

slice of the 3D image to display

...

graphical parameters for plot may also be passed as arguments to this function, as can the plot aspect ratio asp and axes (see plot.window).

Examples

1
2
3
4
file <- "~/Data/barresi/AT_1_Probabilities.h5"
raw <- read_h5(file)
image(raw)
image(raw, z = 23)

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