Learn R Programming

micropan (version 1.2)

plot.Rarefac: Plot and summary of Rarefac objects

Description

Generic functions for Rarefac object.

Usage

# S3 method for Rarefac
plot(x, type = "b", pch = 16, xlab = "Genomes",
  ylab = "Number of unique gene clusters", ...)

# S3 method for Rarefac summary(object, ...)

Arguments

x

A Rarefac object, see below.

type

Type of plot, default is "b", giving markers with lines between.

pch

Marker type, default is 16, a filled circle.

xlab

Text for horizontal axis.

ylab

Text for vertical axis.

Optional graphical arguments.

object

A Rarefac object, see below.

Details

A Rarefac object is a small (S3) extension to a matrix. The first column contains the cumulative number of unique gene clusters found when considering 1,2,...,G genomes in a pan-matrix. Thus, the Rarefac object is a matrix with G rows. Any additional columns will hold similar numbers, but for random shufflings of the genome's ordering. A Rarefac object is typically created by the function rarefaction.

The plot.Rarefac function will display the content of the Rarefac object as a plot of the mean value in rows 1,2,...,G, where G is the total number of genomes in the study.

The summary.Rarefac function will display a text giving the same information as plot.Rarefac.

See Also

rarefaction, heaps.

Examples

Run this code
# NOT RUN {
# See examples in the Help-file for rarefaction.

# }

Run the code above in your browser using DataLab