| plot.crwData | R Documentation |
crwDataPlot observed locations, error ellipses (if applicable), predicted locations, and prediction intervals from crwData or crwHierData object.
## S3 method for class 'crwData' plot( x, animals = NULL, compact = FALSE, ask = TRUE, plotEllipse = TRUE, crawlPlot = FALSE, ... )
x |
An object |
animals |
Vector of indices or IDs of animals for which information will be plotted.
Default: |
compact |
|
ask |
If |
plotEllipse |
If |
crawlPlot |
Logical indicating whether or not to create individual plots using |
... |
Further arguments for passing to |
In order for error ellipses to be plotted, the names for the semi-major axis, semi-minor axis, and
orientation in x$crwPredict must respectively be error_semimajor_axis, error_semiminor_axis,
and error_ellipse_orientation.
If the crwData (or crwHierData) object was created using data generated by
simData (or simHierData) or simObsData, then the true locations (mux,muy) are also plotted.
crwPredictPlot
## Not run:
# extract simulated obsData from example data
obsData <- miExample$obsData
# error ellipse model
err.model <- list(x= ~ ln.sd.x - 1, y = ~ ln.sd.y - 1, rho = ~ error.corr)
# create crwData object
crwOut <- crawlWrap(obsData=obsData,
theta=c(4,0),fixPar=c(1,1,NA,NA),
err.model=err.model)
plot(crwOut,compact=TRUE,ask=FALSE,plotEllipse=FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.