R/resid.R

Defines functions plot.feem.resid `[.feem.resid`

Documented in plot.feem.resid

`[.feem.resid` <- function(x, ...) {
	x <- NextMethod()
	if (inherits(x, c('feem', 'feemcube')))
		class(x) <- c('feem.resid', class(x))
	x
}

plot.feem.resid <- function(x, ..., at, col.regions = diverging.colours(256)) {
	if (missing(at)) {
		r <- max(abs(range(x, na.rm = TRUE)))
		at <- seq(-r, r, length.out = 255)
	}
	NextMethod(x, ..., at = at, col.regions = col.regions)
}

Try the albatross package in your browser

Any scripts or data that you put into this service are public.

albatross documentation built on May 29, 2024, 9:10 a.m.