Description Usage Arguments Value Author(s) Examples
View source: R/plotExpression.R
This function plots the expression signal of a defined gene and marks the main peak location with a dashed line.
1 | plotExpression(exprmat, gene, series, peakdet)
|
exprmat |
A numeric matrix with expression series data with variables as rownames. |
gene |
A character string (not case-sensitive) defining the gene to be plotted. |
series |
A numeric vector defining the experimental series (e.g. time-points of sample acquisition). |
peakdet |
A list returned by the peakDetection function. |
This function does not return any value but generates a plot.
David Lauenstein
1 2 3 4 5 6 7 8 9 10 | # Example based on the heat-shock dataset
data(heat)
heat = as.matrix(heat)
# Define series
series <- c(37,40,41,42,43)
# Run the peak detection algorithm
peakdet <- peakDetection(heat, series, type ='rnaseq', actstrength = 1.5,
prominence = 1.3, minexpr = 5000)
# Plot the expression signal of the gene CXCL5
plotExpression(heat, 'CXCL5', series, peakdet)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.