plot_ellipses | R Documentation |
draw two ellipses
plot_ellipses(
b1,
vb1,
b2,
vb2,
legend = c("inferred", "observed"),
include_origin = FALSE,
...
)
b1 |
ellipse 1 centre (2d) |
vb1 |
ellipse 1 vcov matrix |
b2 |
ellipse 2 centre (2d) |
vb2 |
ellipse 2 vcov matrix |
legend |
character vector length 2 naming ellipse 1 and 2 |
include_origin |
if TRUE, ensure plot includes (0,0) |
... |
arguments passed to plot() |
draw ellipses on current graphics device
Chris Wallace
plot_ellipses(b1=c(5,5), vb1=diag(2),
b2=c(2,2), vb2=matrix( c(1,0.5,0.5,1), 2, 2 ),
legend=c("circle", "ellipse"),
include.origin=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.