modelfit.plot: modelfit.plot

Description Usage Arguments Value Examples

View source: R/dose_response_fitting.R

Description

Function to plot the results of fitted models.

Usage

1
2
modelfit.plot(model, linear.model = FALSE, log.x = FALSE,
  linecol = "firebrick")

Arguments

model

a model object for which prediction is desired.

linear.model

logic argument to specify if the fitted model is linear (TRUE) or non-linear (FALSE).

log.x

logical. Logaritmically transform x axis values? FALSE by default.

linecol

color for the prediction line.

Value

A graph with the real observations plus the prediction of a previously fitted model.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(AU565_dataset) 
#Fit the data with a 4 parameter log-logistic function:
fit<-curve.fit(AU565_dataset,resp="Viable.cells",conc="CONC",fct=drc::LL.4())
#To see the name of other nonlinear function write \code{\link[drc]{getMeanFunctions}}
modelfit.plot(fit)
modelfit.plot(fit,log.x=F)

## End(Not run)

Michorlab/ACESO documentation built on June 4, 2021, 4:57 p.m.