| plot_ellipses {colocPropTest} | R Documentation | 
draw two ellipses
Description
draw two ellipses
Usage
plot_ellipses(
  b1,
  vb1,
  b2,
  vb2,
  legend = c("inferred", "observed"),
  include_origin = FALSE,
  ...
)
Arguments
| 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() | 
Value
draw ellipses on current graphics device
Author(s)
Chris Wallace
Examples
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) 
[Package colocPropTest version 0.9.1 Index]