Heatmap by ggplot

ggheatmap(
  otutab,
  pal = NULL,
  scale = "none",
  rowname = TRUE,
  colname = TRUE,
  tile_params = list(),
  row_cluster = FALSE,
  col_cluster = FALSE,
  row_annotation = NULL,
  col_annotation = NULL,
  annotation_pal = NULL
)

Arguments

otutab

otutab

pal

the main color pal, a vector of colors

scale

"none", "row", "column"

rowname

show row names?

colname

show column names?

tile_params

tile_params parsed to geom_tile

row_cluster

cluster the row?

col_cluster

cluster the column?

row_annotation

row annotation

col_annotation

column annotation

annotation_pal

the annotation color pal, a list. e.g. list(Group=c("red","blue"))

Value

a ggplot

Examples

if (interactive()) {
  data(otutab)
  ggheatmap(otutab[1:30, ],
    scale = "row", row_annotation = otutab[1:30, 1:2],
    col_annotation = metadata[, c(2, 4)]
  )
}