genes_barplot {bulkAnalyseR} | R 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)))
[Package bulkAnalyseR version 1.1.0 Index]