ggortho: Plot Orthographic view of an image using 'ggplot2'

Description Usage Arguments Value Note Examples

View source: R/ggortho.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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

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

neuroconductor-devel-releases/ggneuro documentation built on May 6, 2020, 4:25 p.m.