paramplot.OEFPIL: Plot parameters of an OEFPIL object

Description Usage Arguments Details Value Note See Also Examples

View source: R/paramplot.OEFPIL.R

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

1

Arguments

object

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

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.

Value

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

Note

Due to possible large differences in units of estimated parameters, the scale argument for facetting in the ggplot graph is set to "free". It should be taken into account when interpreting the results.

See Also

OEFPIL, curvplot.OEFPIL and plot.OEFPIL.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
##-- 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))

OEFPIL documentation built on Nov. 4, 2021, 5:07 p.m.