Simple function to plot individual gene expression for a number of genes
1 2 3 4 5 |
x |
A matrix containing gene expression data (row-wise: genes; col-wise: samples) |
center |
Whether gene expressions should be centered to mean= 0 |
scale |
Whether gene expressions should be scaled to sd= 1 |
labels |
Labels for the x-axis |
xval |
Values for the x-axis |
sel |
Selection of rows from the matrix to display |
aveby |
If there are replicates that should be averaged before plotting, this vector should contain IDs unique for a batch, but identical between replicates in a batch, of length equal to number of columns in x |
xlim, ylim |
limits for x- and y- axes |
col |
default color to use in plotting |
sdcol |
color used to plot the standard deviations if aveby is not NULL |
lwd |
default line width to use in plotting |
add |
Whether the existing plot should be updated rather than replaced |
las |
use las=2 to make sure x-axis labels are vertical |
genelabels |
labels shown on the left for each gene plotted. Must have a length equal to number of rows in x. |
debug |
Switch on debugging |
xlab |
Label for the x axis |
ylab |
Label for the y axis |
hline |
Whether a grey line should be drawn at h=0 |
vlines |
Whether grey vertical lines should be drawn at each sample |
... |
Additional parameters will be passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.