`points.cca` <-
function (x, display = "sites", choices = c(1, 2), scaling = 2,
arrow.mul, head.arrow = 0.05, select, const, axis.bp = TRUE, ...)
{
formals(arrows) <- c(formals(arrows), alist(... = ))
if (length(display) > 1)
stop("Only one 'display' item can be added in one command.")
pts <- scores(x, choices = choices, display = display, scaling = scaling,
const)
if (!missing(select))
pts <- .checkSelect(select, pts)
if (display == "cn") {
cnam <- rownames(pts)
points(pts, ...)
pts <- scores(x, choices = choices, display = "bp", scaling = scaling,
const)
bnam <- rownames(pts)
pts <- pts[!(bnam %in% cnam), , drop = FALSE]
if (nrow(pts) == 0)
return(invisible())
else display <- "bp"
}
if (display == "bp") {
if (missing(arrow.mul)) {
arrow.mul <- ordiArrowMul(pts)
}
pts <- pts * arrow.mul
arrows(0, 0, pts[, 1], pts[, 2], length = head.arrow,
...)
pts <- pts * 1.1
if (axis.bp) {
axis(3, at = c(-arrow.mul, 0, arrow.mul),
labels = rep("", 3))
axis(4, at = c(-arrow.mul, 0, arrow.mul),
labels = c(-1, 0, 1))
}
return(invisible())
}
points(pts, ...)
invisible()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.