plot.dsspMod | R Documentation |
Diagnostic, Density and Contour Plots
## S3 method for class 'dsspMod' plot( x, robust_residuals = TRUE, contour_plots = TRUE, nx = 100, ny = 100, nlevels = 5, ... )
x |
an object of class |
robust_residuals |
whether to use robust residuals (median of predicted).
Default to be |
contour_plots |
whether or not to return a second panel with contour plots.
Defaults to |
nx |
dimension of output grid in x direction.
Used for interpolation ( |
ny |
dimension of output grid in y direction.
Used for interpolation ( |
nlevels |
number of levels used in contour plot. |
... |
additional arguments that are passed to |
a list containing the plots printed (individually and together in grid)
library(sp) library(gstat) data(meuse.all) coordinates(meuse.all) <- ~ x + y f <- function(x) -x ## log-prior for exponential distribution for the smoothing parameter ## Draw 100 samples from the posterior of eta given the data y. OUTPUT <- DSSP( formula = log(zinc) ~ 1, data = meuse.all, N = 100, pars = c(0.001, 0.001), log_prior = f ) plot(OUTPUT, contour_plots = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.