View source: R/rnaseq_helpers.R
RLEplot_mod | R Documentation |
plot the relative log expresion for each sample. This plot is useful for comparing normalization procedures between groups.
RLEplot_mod( data_matrix, sample_sheet, col_by = group, title = NULL, caption = NULL )
data_matrix |
log2 transformed counts, as a |
sample_sheet |
a sample_sheet object that describes the sample metadata |
col_by |
a column name from |
title |
a title for the plot. Leave blank for none, or a character string |
caption |
caption for the plot. Leave blank for none, or a character string |
a ggplot object
Denis O'Meally
m <- -log2(replicate(10, rgamma(3e4, 0.1))) %>% magrittr::set_colnames(letters[1:10]) sample_sheet <- data.frame( sample_id = letters[1:10], group = c(rep("A", 4), rep("B", 6)) ) RLEplot_mod( m, sample_sheet, col_by = "group", title = "Relative log expression", caption = "Simulated data set of 10 samples in 5 groups drawn from 30000 genes" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.