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
)
otutab
the main color pal, a vector of colors
"none", "row", "column"
show row names?
show column names?
tile_params parsed to geom_tile
cluster the row?
cluster the column?
row annotation
column annotation
the annotation color pal, a list. e.g. list(Group=c("red","blue"))
a ggplot
if (interactive()) {
data(otutab)
ggheatmap(otutab[1:30, ],
scale = "row", row_annotation = otutab[1:30, 1:2],
col_annotation = metadata[, c(2, 4)]
)
}