Description Usage Arguments Value Author(s) Examples
View source: R/geom_ord_ellipse.R
add confidence ellipse to ordinary plot produced by ggord
1 | geom_ord_ellipse(mapping = NULL, ellipse_pro = 0.97, fill = NA, ...)
|
mapping |
aes mapping |
ellipse_pro |
confidence value for the ellipse |
fill |
color to fill the ellipse, NA by default |
... |
additional parameters |
ggplot layer
Guangchuang Yu
1 2 3 4 5 6 7 8 9 10 | ## Not run:
library(MASS)
ord <- lda(Species ~ ., iris, prior = rep(1, 3)/3)
## devtools::install_github('fawda123/ggord')
library(ggord)
p <- ggord(ord, iris$Species)
p + geom_ord_ellipse(ellipse_pro = .96, color='firebrick', size=1, lty=3) +
geom_ord_ellipse(ellipse_pro = .99, lty=2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.