genes_barplot: Create a bar plot of expression for selected genes across...

View source: R/QCplotFuns.R

genes_barplotR Documentation

Create a bar plot of expression for selected genes across samples in an experiment

Description

This function creates a clustered bar plot between all samples in the expression matrix for the selection of genes.

Usage

genes_barplot(sub.expression.matrix, log.transformation = TRUE)

Arguments

sub.expression.matrix

subset of the expression matrix containing only selected genes

log.transformation

whether expression should be shown on log (default) or linear scale

Value

The bar plot as a ggplot object.

Examples

expression.matrix.preproc <- as.matrix(read.csv(
  system.file("extdata", "expression_matrix_preprocessed.csv", package = "bulkAnalyseR"), 
  row.names = 1
))[1:500,]

print(genes_barplot(head(expression.matrix.preproc,5)))


bulkAnalyseR documentation built on Dec. 28, 2022, 2:04 a.m.