R/boxplot.R

if (!isGeneric("boxplot")) {
	setGeneric("boxplot", function(x, ...)
		standardGeneric("boxplot"))
}	


setMethod('boxplot', signature(x='ModelEvaluation'), 
	function(x, notch=TRUE, ...) {
		comb <- c(x@presence, x@absence)
		group <- c(rep('presence', length(x@presence)), rep('absence', length(x@absence)) )
		boxplot(comb~group, notch=notch, data=data.frame(comb,group), ...)
	}
)

Try the dismo package in your browser

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

dismo documentation built on May 2, 2019, 6:07 p.m.