plot_heatmap {tabula} | R Documentation |
Heatmap
Description
Plots a heatmap.
Usage
plot_heatmap(object, ...)
## S4 method for signature 'matrix'
plot_heatmap(
object,
color = NULL,
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,
color = NULL,
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,
color = NULL,
diag = FALSE,
upper = FALSE,
lower = !upper,
axes = TRUE,
legend = TRUE,
...
)
Arguments
object |
A |
... |
Currently not used. |
color |
A vector of colors or a |
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_ford()
,
plot_rank()
,
plot_spot()
,
seriograph()
Examples
## Data from Lipo et al. 2015
data("mississippi", package = "folio")
## Plot raw data
plot_heatmap(mississippi)
## Change colors
plot_heatmap(mississippi, color = color("iridescent"))
## Plot conditional proportions
plot_heatmap(mississippi, freq = TRUE, margin = 1)
plot_heatmap(mississippi, freq = TRUE, margin = 2)