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


darunabas/phyloregion documentation built on Oct. 27, 2024, 10:01 p.m.