powered by
plotly
This is an updated version of ellipse. For more technical details, please refer to ellipse.
ellipse
plotly_ellipse(mu, sigma, alpha=.05, npoints=250, draw=TRUE, cex = 3, col = "#1f77b4", lwd = 3, title = "", title.x = 0.5, title.y = 0.95, title.size = 15, xlab = "X", xlab.size = 15, xtick.size = 15, ylab = "Y", ylab.size = 15, ytick.size = 15)
plotly_ellipse returns an npointsx2 matrix of the points forming the border of the ellipse.
plotly_ellipse
npoints
A 2-vector giving the mean.
A 2x2 matrix giving the covariance matrix.
Probability to be excluded from the ellipse. The default value is alpha = .05, which results in a 95% ellipse.
Number of points comprising the border of the ellipse.
If TRUE, draw the ellipse.
Size of markers.
Line width of the ellipse.
Color of both markers and lines.
Text of the main title.
Size of the main title.
Horsizontal position of the main title.
Vertical posotion of the main title.
Label of X-axis.
Size of the lable of X-axis.
Size of tick lables of X-axis.
Label of Y-axis.
Size of the lable of Y-axis.
Size of tick lables of Y-axis.
Johnson, R. A. and Wichern, D. W. (2002) Applied Multivariate Statistical Analysis, Fifth Edition, Prentice Hall.
regcr, ellipse
regcr
## Produce a 95% ellipse with the specified mean and covariance structure. mu <- c(1, 3) sigma <- matrix(c(1, .3, .3, 1.5), 2, 2) plotly_ellipse(mu, sigma, npoints = 200)
Run the code above in your browser using DataLab