hist.nifti: Histogram of Values in an Image

Description Usage Arguments Value Examples

View source: R/hist.nifti.R

Description

Computes and displays a histogram of the values of an image with the option for a mask.

Usage

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

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

Arguments

x

Object of class nifti

...

Arguments passed to hist.default

mask

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

Value

Output of hist

Examples

1
2
3
img = nifti(array(rnorm(10^3), dim = rep(10, 3)))
mask = img > 0
hist(img, mask = mask)

neuroconductor-devel/neurobase documentation built on May 6, 2021, 1:48 p.m.