Learn R Programming

neurobase (version 1.32.4)

boxplot.nifti: Boxplot of Values in an Image

Description

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

Usage

# S3 method for nifti
boxplot(x, ..., mask)

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

Value

Output of boxplot

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.

Examples

Run this code
img = nifti(array(rnorm(10^3), dim = rep(10, 3)))
mask = img > 0
boxplot(img)
boxplot(img, mask = mask)
boxplot(as.anlz(img))

Run the code above in your browser using DataLab