varCheck.vglm <- function(model, xlab, ylab, pch, ...) {
if(missing(xlab)) xlab <- expression(mu)
if(missing(ylab)) ylab <- 'squared Pearson residuals'
if(missing(pch)) pch <- 16
r.p <- (residuals(model, type = 'pearson')[,1])^2
y.hat <- fitted(model)[,1]
plot(y.hat, r.p, pch = 16, xlab = xlab, ylab = ylab, ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.