boxplot.nifti: Boxplot of Values in an Image

Description Usage Arguments Value Examples

View source: R/boxplot.nifti.R

Description

Computes the boxplot of values of an image with the option for a mask.

Usage

1
2
3
4
5
## S3 method for class 'nifti'
boxplot(x, ..., mask)

## S3 method for class 'anlz'
boxplot(x, ..., mask)

Arguments

x

Object of class nifti

...

Arguments passed to boxplot.default

mask

object to subset the image. If missing, then all values of the image are plotted.

Value

Output of boxplot

Examples

1
2
3
4
5
img = nifti(array(rnorm(10^3), dim = rep(10, 3)))
mask = img > 0
boxplot(img)
boxplot(img, mask = mask)
boxplot(as.anlz(img))

neuroconductor/neurobase documentation built on May 19, 2021, 5:24 a.m.