plot_heatmap | R Documentation |
Plots a heatmap.
plot_heatmap(object, ...) ## S4 method for signature 'matrix' plot_heatmap(object, diag = TRUE, upper = TRUE, lower = TRUE, freq = FALSE) ## S4 method for signature 'data.frame' plot_heatmap(object, diag = TRUE, upper = TRUE, lower = TRUE, freq = FALSE) ## S4 method for signature 'dist' plot_heatmap(object, diag = FALSE, upper = FALSE, lower = !upper)
object |
A m x p |
... |
Currently not used. |
diag |
A |
upper |
A |
lower |
A |
freq |
A |
A ggplot2::ggplot object.
N. Frerebeau
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.
pvi()
Other plot methods:
plot_bar
,
plot_diversity
,
plot_line
,
plot_spot()
## Abundance data (data from Desachy 2004) data("compiegne", package = "folio") ## Plot matrix diagram... plot_heatmap(compiegne) plot_heatmap(compiegne, freq = TRUE) ## Presence/absence data inc <- sample(0:1, size = 100, replace = TRUE) bin <- matrix(data = as.logical(inc), nrow = 10, ncol = 10) plot_heatmap(bin) + ggplot2::scale_fill_manual(values = c("TRUE" = "black", "FALSE" = "white"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.