View source: R/CollocInferPlots.R
CollocInferPlots | R Documentation |
Diagnostic Plots on the Results of CollocInfer
CollocInferPlots(coefs,pars,lik,proc,times=NULL,data=NULL,
cols=NULL,datacols=NULL,datanames=NULL,ObsPlot=TRUE,DerivPlot=TRUE,
cex.axis=1.5,cex.lab=1.5,cex=1.5,lwd=2)
coefs |
Vector giving the current estimate of the coefficients. |
pars |
Vector of estimated parameters. |
lik |
|
proc |
|
times |
Vector observation times for the data. |
data |
Matrix of observed data values. |
cols |
Optional vector specifying a color for each state variable. |
datacols |
Optional vector specifying a color for each observation dimension. |
datanames |
Optional character vector specifying a glyph to plot the data. Taken from the column-names
of |
ObsPlot |
Should a plot of predictions and observations be given? |
DerivPlot |
Should derivative diagnostics be produced? |
cex.axis |
Axis font size. |
cex.lab |
Label font size. |
cex |
Plotting point font size |
lwd |
Plotting line width |
Timevec is taken to be the quadrature values. Three plots can be produced:
If ObsPlot=TRUE
a plot is given of the predicted values of the observations along with
the observations themselves (if given).
If DerivPlot=TRUE
two plots are produced. The first gives the value of the derivative of
the estimated trajectory (dashed) and the value of the right-hand-side of the ordinary differential equation
in proc
(hence the predicted derivative) (solid). The second plot gives their difference in the first panel as well as the estimated trajectory in the second panel.
A list containing elements used in plotting:
timevec |
Times at which the trajectories etc were evaluated. |
traj |
Estimated value of the trajectory. |
dtraj |
Derivative of the estimated trajectory. |
ftraj |
Value of the derivative of the trajectory predicted by |
otraj |
Predicted values of the observations from |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.