View source: R/plot_volume-slices.R
plot_slices | R Documentation |
Plot slices of volume
plot_slices(
volume,
overlays = NULL,
transform = NULL,
positions = NULL,
zoom = 1,
pixel_width = 0.5,
col = c("black", "white"),
normalize = NULL,
zclip = NULL,
overlay_alpha = 0.3,
zlim = normalize,
main = "",
title_position = c("left", "top"),
fun = NULL,
nc = NA,
which = NULL,
...
)
volume |
path to volume (underlay) |
overlays |
images to overlay on top of the underlay, can be either
a vector of paths to the overlay volume images, or a sequence of named lists.
Each list item has |
transform |
rotation of the volume in scanner |
positions |
vector of length 3 or matrix of 3 columns, the |
zoom |
zoom-in radio, default is 1 |
pixel_width |
output image pixel resolution; default is |
col |
color palette, can be a sequence of colors |
normalize |
range for volume data to be normalized; either |
zclip |
clip image densities; if specified, values outside of this range will be clipped into this range |
overlay_alpha |
transparency of the overlay; default is 0.3 |
zlim |
image plot value range, default is identical to |
main |
image titles |
title_position |
title position; choices are |
fun |
function with two arguments that will be executed after each image is drawn; can be used to draw cross-hairs or annotate each image |
nc |
number of "columns" in the plot when there are too many positions,
must be positive integer; default is |
which |
which plane to plot; default is |
... |
additional arguments passing into |
Nothing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.