Learn R Programming

tabula (version 1.0.0)

plotSpot: Spot plot

Description

Plots a spot matrix.

Usage

plotSpot(object, ...)

# S4 method for CountMatrix plotSpot(object, threshold = NULL)

# S4 method for FrequencyMatrix plotSpot(object, threshold = NULL)

Arguments

object

An object to be plotted.

...

Further arguments passed to other methods.

threshold

A function that takes a numeric vector as argument and returns a single numeric value (see details). If NULL, no threshold is computed.

Details

Note that rows are scaled to 0-1 (frequencies).

See Also

Other plot: plotBar, plotMatrix, plotRank

Examples

Run this code
# NOT RUN {
# Coerce dataset to abundance matrix
# Data from Desachy 2004
count <- as(compiegne, "CountMatrix")

# Plot spot diagram...
## ...without threshod
plotSpot(count)

## ...with the  column means as threshold
plotSpot(count, threshold = mean)

## ...with the column medians as threshold
plotSpot(count, threshold = median)
# }

Run the code above in your browser using DataLab