paramplot.OEFPIL {OEFPIL} | R Documentation |
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 |
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
##-- 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))