R/plot.reco.R

Defines functions plot.reco

Documented in plot.reco

plot.reco <- function(x, ...){
	#if(length(x)>1){stop("more than one reco model achieved. please provide just one")}
	x <- x[[1]]
	plot(R ~ Temp, data=x$model, ...)
	nd <- seq(min(x$model$Temp), max(x$model$Temp), length.out=100)
	lines(predict(x, newdata=data.frame(Temp=nd)) ~ nd)
}

Try the flux package in your browser

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

flux documentation built on June 26, 2022, 9:05 a.m.