draw heatmap plot with annotation by ggplot2
ggheat(
dat,
group,
cluster = FALSE,
color = c("#2874C5", "white", "#f87669"),
legend_color = c("#2874C5", "#f87669", "#e6b707", "#868686", "#66C2A5", "#FC8D62",
"#8DA0CB", "#E78AC3", "#A6D854", "#FFD92F", "#E5C494", "#B3B3B3"),
show_rownames = NULL,
show_colnames = TRUE,
cluster_rows = FALSE,
cluster_cols = FALSE,
groupname = "group",
expname = "exp",
fill_mid = TRUE,
rotate_rownames = NULL
)a ggplot object
expression matrix for plot
group for expression colnames
logical,cluster in both rows and column or not, default F,now replaced by cluster_rows and cluster_cols.
color for heatmap
color for legend
logical or NULL. When NULL, the function shows x-axis labels for up to 100 rows, rotates them 45 degrees for 9 to 100 rows, and hides them above 100 rows.
logical,show colnames in plot or not, default T
logical, if rows (on the plot) should be clustered, default F
logical, if column (on the plot) should be clustered, default F
name of group legend
name of exp legend
use median value as geom_tile fill midpoint
logical or NULL. When NULL, the function uses the
automatic rotation rule described in show_rownames.
Xiaojie Sun