plot.dat.theor: Plot multigroup data along with theoretical predictions

Description Usage Arguments Value Author(s) Examples

Description

Plots multigroup data along with the major axis line and 95% confidence ellipses

Usage

1
plot_dat.theor(x, f, vars = 1:2, cols = 1:length(levels(f)), theor, lines = TRUE, ellipses = TRUE, ...)

Arguments

x

a numeric matrix or data frame, or (if f is missing) a list of a data matrix and a grouping variable

f

factor describing group structure

vars

vector of the (two) variables to plot

cols

colors

theor

list of theoretical values, as output by sim.theor

lines

(logical) plot major axis lines?

ellipses

(logical) plot 95% confidence ellipses?

...

other options to plot

Value

Produces a plot.

Author(s)

Ben Bolker

Examples

1
2
3
X = simdata()
Th = sim.theor()
plot_dat.theor(X,theor=Th)

bbolker/cpcbp documentation built on May 11, 2019, 9:28 p.m.