Skip to contents

Internal plotting backend for plot.pedstats. Users should call plot(stats, ...) instead of this function directly.

Usage

vispstat(x, type = c("genint", "ecg"), metric = "ECG", ...)

# S3 method for class 'pedstats'
plot(x, ...)

Arguments

x

A pedstats object returned by pedstats.

type

Character. The type of plot to generate:

  • "genint": Bar chart of mean generation intervals.

  • "ecg": Histogram of ancestral depth metrics (ECG, FullGen, or MaxGen).

metric

Character. Specific metric to plot when type = "ecg". Options: "ECG" (default), "FullGen", "MaxGen".

...

Additional arguments passed to barchart or histogram.

Value

A lattice plot object.

See also

pedstats, plot.pedstats