Description Usage Arguments Details Examples
This will plot a given gene via violin plot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
gene |
Will only plot data for this gene, if the gene paramter is a list the violin plot will display the sum of the expression for all genes in the list |
input |
Input expression set |
sampleID |
pData variable to group by on the x axis |
colourID |
a pData variable to color by |
facetID |
an optional pData variable to plot by |
cols |
Personalized colour vector, length should equal number of groups in colourID |
subsetID |
a pData variable to subset the original data by |
subsetName |
a value from the subsetID variable specified, this will select only these cells to plot |
facet_scale |
ggplot2 parameter for plot scales defaults to fixed |
mean_text |
ggplot2 parameter for adding the mean expression per group defaults to False |
fraction_text |
ggplot2 parameter for adding the fraction of cells with expression greater than 0 for that gene defaults to False |
type |
plot type, default is violin, can also plot density and cdf distribution |
fudge |
a pseudocount value to avoid dropping cells with zero counts |
Utilize information stored in pData to control the plot display.
1 | plotViolin("Actb", input, sampleID = "sample", facetID = "subtype", colourID = "genotype", cols = NULL, subsetID = "celltype", subsetName = "Neurons", facet_scale = "fixed")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.