Produce “lightbox” layout of slices for nifti, anlz and
afni objects.
slice(x, ...)# S4 method for nifti
slice(
x,
z = 1,
w = 1,
col = gray(0:64/64),
plane = c("axial", "coronal", "sagittal"),
zlim = NULL,
xlab = "",
ylab = "",
axes = FALSE,
oma = rep(0, 4),
mar = rep(0, 4),
bg = "black",
useRaster = TRUE,
...
)
# S4 method for anlz
slice(
x,
z = 1,
w = 1,
col = gray(0:64/64),
plane = c("axial", "coronal", "sagittal"),
zlim = NULL,
xlab = "",
ylab = "",
axes = FALSE,
oma = rep(0, 4),
mar = rep(0, 4),
bg = "black",
useRaster = TRUE,
...
)
# S4 method for array
slice(x, ...)
# S4 method for afni
slice(x, ...)
is an object of class nifti or similar.
other arguments to the image function may be provided
here.
is the slice to be displayed (ignored when plot.type =
"multiple").
is the time point to be displayed (4D arrays only).
is grayscale (by default).
is the plane of acquisition to be displayed (choices are ‘axial’, ‘coronal’, ‘sagittal’).
is set to NULL by default and utilizes the internal image
range.
is set to “” since all margins are set to zero.
is set to “” since all margins are set to zero.
is set to FALSE since all margins are set to zero.
is the size of the outer margins in the par function.
is the number of lines of margin in the par function.
is the background color in the par function.
if TRUE, a bitmap raster is used to plot
the image instead of polygons. Passed to image
Generic function: see
image.
Produce images for
x.
Produce images for x.
Produce images for x.
Brandon Whitcher bwhitcher@gmail.com
Uses the S3 generic function slice, with medical-image friendly
settings, to display nifti, anlz and afni class objects
in a “lightbox” layout.
orthographic-methods, image-methods