Plots a heatmap.

plot_heatmap(object, ...)

# S4 method for matrix
plot_heatmap(object)

Arguments

object

An object to be plotted.

...

Further arguments to be passed to internal methods.

Value

A ggplot object.

References

Desachy, B. (2004). Le sériographe EPPM: un outil informatisé de sériation graphique pour tableaux de comptages. Revue archéologique de Picardie, 3(1), 39-56. doi: 10.3406/pica.2004.2396 .

See also

Author

N. Frerebeau

Examples

## Abundance data (data from Desachy 2004) data("compiegne", package = "folio") ## Coerce dataset to absolute frequencies counts <- as_count(compiegne) ## Coerce dataset to relative frequencies freq <- as_composition(compiegne) ## Plot matrix diagram... plot_heatmap(counts)
plot_heatmap(freq)
## Presence/absence data inc <- sample(0:1, size = 100, replace = TRUE) bin <- IncidenceMatrix(data = inc, nrow = 10, ncol = 10) plot_heatmap(bin) + ggplot2::scale_fill_manual(values = c("TRUE" = "black", "FALSE" = "white"))