plot_heatmap {tabula} | R Documentation |
Heatmap
Description
Plots a heatmap.
Usage
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,
fixed_ratio = TRUE,
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,
fixed_ratio = TRUE,
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,
...
)
Arguments
object |
A |
... |
Currently not used. |
col |
A vector of colors. |
diag |
A |
upper |
A |
lower |
A |
freq |
A |
margin |
An |
fixed_ratio |
A |
axes |
A |
legend |
A |
Value
plot_heatmap()
is called for its side-effects: it results in a graphic
being displayed (invisibly returns object
).
Author(s)
N. Frerebeau
See Also
Other plot methods:
matrigraph()
,
plot_bertin()
,
plot_diceleraas()
,
plot_diversity
,
plot_ford()
,
plot_rank()
,
plot_rarefaction
,
plot_spot()
,
seriograph()
Examples
## 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)