Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

breaker

Find Breaks for nifti Image Plotting


Description

Helper function for plotting - returns breaks for image plot function for object of class nifti

Usage

breaker(x, zlim, col, breaks = NULL)

Arguments

x

Object of class nifti

zlim

A user-specified zlim. If NULL, will calculate how ortho2 would calculate zlim

col

colors to be plotted. Only used for length(col), so can be a vector of length cols to be plotted

breaks

if !is.null(breaks), then will calculate breaks. Otherwise will return this breaks vector

Value

Vector of length 2

If breaks = NULL, then vector of length(col) + 1, otherwise returns breaks


neurobase

'Neuroconductor' Base Package with Helper Functions for 'nifti' Objects

v1.32.1
GPL-2
Authors
John Muschelli [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.