spatial2D {pRoloc} | R Documentation |
Produces a pca plot with spatial variation in localisation probabilities
spatial2D(object, dims = c(1, 2), cov.function = fields::wendland.cov, theta = 1, derivative = 2, k = 1, breaks = c(0.99, 0.95, 0.9, 0.85, 0.8, 0.75, 0.7), aspect = 0.5)
object |
A valid object of class |
dims |
The PCA dimension in which to project he data, default is
|
cov.function |
The covariance function used default is
wendland.cov. See |
theta |
A hyperparameter to the covariance function. See |
derivative |
The number of derivative of the wendland kernel. See
|
k |
A hyperparamter to the covariance function. See |
breaks |
Probability values at which to draw the contour bands. Default
is |
aspect |
A argument to change the plotting aspect of the PCA |
Used for side effect of producing plot. Invisibily returns an ggplot object that can be further manipulated
Oliver M. Crook <omc25@cam.ac.uk>
## Not run: library("pRolocdata") data("tan2009r1") tanres <- tagmMcmcTrain(object = tan2009r1) tanres <- tagmMcmcProcess(tanres) tan2009r1 <- tagmMcmcPredict(object = tan2009r1, params = tanres, probJoint = TRUE) spatial2D(object = tan2009r1) ## End(Not run)