Skip to contents

Plots an ellipse representing the bivariate predictive inteval

Usage

Plot_ellipse(
  Cov,
  Mean = rep(0, 2),
  add = FALSE,
  prob = 0.95,
  xlim = log(c(0.01, 2)),
  ylim = xlim,
  logticks = c(1, 2, 5),
  ticks = c(0, 5),
  axis_scale = c("log", "log"),
  main = "",
  xlab = "",
  ylab = "",
  lcol = "black",
  plot_lines = FALSE,
  lty = "solid",
  xaxt = "s",
  yaxt = "s",
  ...
)

Arguments

Cov

2x2 matrix representing covariance

Mean

numeric vector (length of 2) representing Empirical Bayes prediction of median

add

Boolean whether to add ellipse to existing plot

prob

for defining predictive interval

xlim

x-limits if add=FALSE

ylim

y-limits if add=FALSE

logticks

ticks to use if plotting on a log-scale

ticks

ticks to use if plotting on a natural-scale

main

legend for each panel

xlab

x-axis label

ylab

y-axis label

lcol

line color for ellipse

plot_lines

whether to plot lines representing "major axis" and "OLS" regression parameters

...

additional arguments passed to shape::plotellipse

whichlog

which axes are log-scale

Value

integer of row numbers of ParentChild_gz matching genus_species