Plotting function for an orthographic view of a 3-dimensional image

construct_ggortho(img, overlay = NULL, xyz = NULL, crosshairs = TRUE,
  col = gray(0:64/64), col.overlay = oro.nifti::hotmetal(), ...)

ggortho(img, overlay = NULL, xyz = NULL, crosshairs = TRUE, ...)

ggortho2(...)

ggortho_img_df(img_df, overlay_df = NULL, xyz = NULL, crosshairs = TRUE)

ggortho_base()

ggortho_slice_df(slice_df, slice_overlay_df = NULL, crosshairs = TRUE)

Arguments

img

object that can be coerced to a nifti using check_nifti

overlay

object that can be coerced to a nifti using check_nifti

xyz

coordinates to be plotted

crosshairs

should crosshairs be added?

col

Colors to map intensities for img, passed to img_colour_df

col.overlay

Colors to map intensities for overlay, passed to img_colour_df

...

arguments to pass to img_colour_df

img_df

Image data.frame constructed from img_colour_df

overlay_df

Image data.frame constructed from img_colour_df

slice_df

Image data.frame constructed from slice_colour_df

slice_overlay_df

Image data.frame constructed from slice_colour_df to overlay

Value

construct_ggortho returns a list of the constructed plot, the full data for the image, the image for the plot and the xyz coordinate. ggortho simply returns the plot

Note

ggortho2 is a duplicate of ggortho to agree with the ortho2 of neurobae

Examples

img = oro.nifti::nifti(array(rnorm(10^3), dim = rep(10, 3)))
L = construct_ggortho(img)
ggortho(img)