View source: R/slice_colour_df.R
slice_colour_df | R Documentation |
Slices a image color data.frame
along the 3 planes (axial,
coronal, sagittal) and returns it in a ggplot-ready format for faceting.
slice_colour_df(img_df, xyz = NULL)
img_df |
an image |
xyz |
coordinates to slice the |
A data.frame
with x and y coordinates, colour, and intensity
values, along with the associated planes that were sliced.
img = nifti(array(rnorm(10^3), dim = rep(10, 3)))
df = img_colour_df(img)
sliced = slice_colour_df(df, c(5, 5, 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.