mosaicplot.Shannonci {MCPAN}R Documentation

Mosaicplot for Shannonci and Simpsonci

Description

Create a mosaicplot from objects of class Shannonci or Simpsonci

Usage

## S3 method for class 'Shannonci':
mosaicplot(x, decreasing = NULL, ...)
## S3 method for class 'Simpsonci':
mosaicplot(x, decreasing = NULL, ...)

Arguments

x an object of class "Simpsonci" or "Shannonci" as can be obtained from calling Simpsonci or Shannonci
decreasing a single logical value, indicating whether the species should be plotted in the current order (if decreasing=NULL), in decreasing order (if decreasing=TRUE), or in increasing order (if decreasing=FALSE)
... further arguments to be passed to mosaicplot, see ?mosaicplot and ?par for details

Details

This function uses the counts in [["sample.estimate"]][["table"]] to produce a mosaicplot.

Value

A plot.

Examples


data(HCD)

HCDFam <- HCD[,-1]

SCI<-Simpsonci(X=HCDFam, f=HCD[,1])

mosaicplot(SCI, decreasing=TRUE, col=rainbow(n=8))


[Package MCPAN version 1.1-7 Index]