#' @importFrom ellipse ellipse
#' @export
corellipse <- function(x, y, level=0.95, ...) {
x0 <- mean(x)
y0 <- mean(y)
co <- cov(cbind(x,y))
lines(ellipse(co, centre=c(x0,y0), level=level), ...)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.