plot_transcript_heatmap | R Documentation |
Plot a clustered heatmap. The clustering is done by the hclust function.
plot_transcript_heatmap(obj, transcripts, units = "tpm", trans = "log", cluster_transcripts = FALSE, offset = 1, color_high = "#581845", color_mid = "#FFC300", color_low = "#DAF7A6", x_axis_angle = 50, annotation_cols = setdiff(colnames(obj$sample_to_covariates), "sample"), ...)
obj |
a |
transcripts |
a vector of strings containing a list of transcripts to be plotted in a heatmap |
units |
a string specifying which units to use, either tpm or est_counts (scaled_reads_per_base for gene_mode) |
trans |
a function or a string specifying a function to transform the data by |
cluster_transcripts |
whether the transcripts also should be clustered.
default is |
offset |
how much should be added to estimated expression before transformation? Default is 1. |
color_high |
the 'high expression' color (default: dark red) |
color_low |
the 'low expression' color (default: light green) |
x_axis_angle |
the angle at which to put the x-axis labels |
annotation_cols |
a character vector of covariates from
|
... |
additional arguments to customize the heatmap. passed to
|
color_mide |
the 'medium expression' color (default: yellow) |
a ggplot
object