Learn R Programming

OEFPIL (version 0.1.1)

paramplot.OEFPIL: Plot parameters of an OEFPIL object

Description

Function for plotting the estimated values of the parameters with error bars (plus minus standard deviation) using ggplot for an object (or list of objects) of class "OEFPIL".

Usage

paramplot.OEFPIL(object)

Arguments

object

an object or a list of objects of class "OEFPIL" (a result of a call to OEFPIL).

Value

A ggplot graph of the estimated parameter values with error bars. The result can be edit using other ggplot components as usually.

Details

The input list has to be without NaN, NA, Inf or -Inf values in the estimated parameters or covariance matrix in the source "OEFPIL" object. In that case the function returns a warning message and no graph is plotted.

See Also

OEFPIL, curvplot.OEFPIL and plot.OEFPIL.

Examples

Run this code
# NOT RUN {
##-- Continuing the coef.OEFPIL(.) example:

n <- nrow(steamdata)
CM2 <- diag(c(rep(0.2^2,n), rep(0.1^2,n)))
st2 <- OEFPIL(steamdata, y ~ b1 * 10^(b2 * x/ (b3 + x)), list(b1 = 5, b2 = 8, b3 = 200),
             CM2, useNLS = FALSE)

##Example 1 - Use of paramplot.OEFPIL function on an object of class 'OEFPIL'
paramplot.OEFPIL(st2)

##Example 2 - Use of paramplot.OEFPIL function on a list of objects of class 'OEFPIL'
paramplot.OEFPIL(list(st1,st2))


# }

Run the code above in your browser using DataLab