plot_heatmap | R Documentation |
Plots a heatmap.
plot_heatmap(object, ...)
## S4 method for signature 'matrix'
plot_heatmap(
object,
col = grDevices::hcl.colors(12, "YlOrBr", rev = TRUE),
diag = TRUE,
upper = TRUE,
lower = TRUE,
freq = FALSE,
margin = 1,
axes = TRUE,
legend = TRUE,
...
)
## S4 method for signature 'data.frame'
plot_heatmap(
object,
col = grDevices::hcl.colors(12, "YlOrBr", rev = TRUE),
diag = TRUE,
upper = TRUE,
lower = TRUE,
freq = FALSE,
margin = 1,
axes = TRUE,
legend = TRUE,
...
)
## S4 method for signature 'dist'
plot_heatmap(
object,
col = grDevices::hcl.colors(12, "YlOrBr", rev = TRUE),
diag = FALSE,
upper = FALSE,
lower = !upper,
axes = TRUE,
legend = TRUE,
...
)
object |
A |
... |
Currently not used. |
col |
A vector of colors. |
diag |
A |
upper |
A |
lower |
A |
freq |
A |
margin |
An |
axes |
A |
legend |
A |
plot_heatmap()
is called it for its side-effects: it results in a graphic
being displayed (invisibly returns object
).
N. Frerebeau
Other plot methods:
matrigraph()
,
plot_bertin()
,
plot_diceleraas()
,
plot_diversity
,
plot_ford()
,
plot_rank()
,
plot_rarefaction
,
plot_spot()
,
seriograph()
## Data from Conkey 1980, Kintigh 1989
data("cantabria")
## Plot raw data
plot_heatmap(cantabria)
## Plot conditional proportions
plot_heatmap(cantabria, freq = TRUE, margin = 1)
plot_heatmap(cantabria, freq = TRUE, margin = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.