density.nifti: Density of Values in an Image

Description Usage Arguments Value Examples

View source: R/density.nifti.R

Description

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

Usage

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

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

Arguments

x

Object of class nifti

...

Arguments passed to density.default

mask

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

Value

Output of density

Examples

1
2
3
4
5
6
7
img = nifti(array(rnorm(10^3), dim = rep(10, 3)))
mask = img > 0
density(img, mask = mask)
density(img)

density(as.anlz(img), mask = mask)
density(as.anlz(img))

neuroconductor-releases/neurobase documentation built on Nov. 12, 2020, 7:47 p.m.