Learn R Programming

tabula (version 1.2.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)

# S4 method for SimilarityMatrix plotSpot(object)

# S4 method for OccurrenceMatrix plotSpot(object)

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, plotDate, plotMatrix, plotRank

Examples

Run this code
# NOT RUN {
# Plot spot diagram...

## ...of count data...
count <- as(mississippi, "CountMatrix")
### ...without threshod
plotSpot(count)
### ...with the  column means as threshold
plotSpot(count, threshold = mean)
### ...with the column medians as threshold
plotSpot(count, threshold = median)

## ...of a similarity matrix
sim <- similarity(count, "brainerd")
plotSpot(sim)

## ...of a co-occurence matrix
occ <- as(mississippi, "OccurrenceMatrix")
plotSpot(occ)
# }

Run the code above in your browser using DataLab