Description Usage Arguments Details Value
View source: R/CollocInferPlots.R
Diagnostic Plots on the Results of CollocInfer
1 2 3 
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 columnnames
of 
ObsPlot 
Should a plot of predictions and observations be given? 
DerivPlot 
Should derivative diagnostics be produced? 
DerivResid 
Should a plot of the difference between Dx and f(x) be produced? 
newplot 
Should plots be opened in new devices? Note if this is FALSE, DerivePlot will overwrite ObsPlot. 
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 righthandside 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.