plot.sparse: Create illustrative sparse matrix

View source: R/see_sparse.R

plot.sparseR Documentation

Create illustrative sparse matrix

Description

This function visualizes a sparse matrix using vertical bands corresponding to presence or absence of a species in an area.

Usage

## S3 method for class 'sparse'
plot(x, col = c("red", "yellow"), lwd = 1, ...)

Arguments

x

A matrix

col

A vector of colors to represent presence or absence of a species

lwd

Line width

...

Further arguments passed to or from other methods.

Value

Returns no value, just plot sparse matrix


phyloregion documentation built on Aug. 15, 2023, 9:07 a.m.