plot_genes | R Documentation |
Plot heatmap of top genes with annoation bars, reordered branches, and color scale midpoint at zero.
plot_genes(
x,
intgroup,
palette = "RdBu",
dendsort = TRUE,
scale = "none",
midpoint0 = TRUE,
max_scale = NA,
border = NA,
cluster_cols = TRUE,
...
)
x |
a tibble from |
intgroup |
one or more column names for pheatmap |
palette |
RColorBrewer palette name, vector of colors, or "RdGn" for Red-Green color scale. |
dendsort |
reorder branches using |
scale |
scale values, default none. diff will substract the row mean from
each value. Other options are none, row and column as described in
|
midpoint0 |
if scale = diff, then center color scale at zero |
max_scale |
if scale = diff, then max value for color scale, default is max(abs(range(x))) |
border |
pheatmap border color, default NA |
cluster_cols |
cluster columns |
... |
additional options passed to |
A pheatmap
Chris Stubben
x <- top_counts(pasilla$results, pasilla$rlog)
plot_genes(x, c("condition", "type"), scale="row", annotation_names_col=FALSE)
# plot_genes(x, output = "d3")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.