| plot_heatmap | R Documentation | 
Plots a heatmap.
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,
  ...
)
| 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  | 
plot_heatmap() is called 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_ford(),
plot_rank(),
plot_spot(),
seriograph()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.