View source: R/visualization.R
plotClusterGeneViolin | R Documentation |
Make violin plots for each given gene grouped by cluster variable and stack along y axis.
plotClusterGeneViolin(
object,
gene,
groupBy = NULL,
colorBy = NULL,
box = FALSE,
boxAlpha = 0.1,
yFunc = function(x) log1p(x * 10000),
showLegend = !is.null(colorBy),
xlabAngle = 40,
...
)
object |
A liger object. |
gene |
Character vector of gene names. |
groupBy |
The name of an available categorical variable in
|
colorBy |
The name of another categorical variable in |
box |
Logical, whether to add boxplot. Default |
boxAlpha |
Numeric, transparency of boxplot. Default |
yFunc |
Function to transform the y-axis. Default is
|
showLegend |
Whether to show the legend. Default |
xlabAngle |
Numeric, counter-clockwise rotation angle in degrees of X
axis label text. Default |
... |
Arguments passed on to
|
If xlab
need to be set, set xlabAngle
at the same time. This is
due to that the argument parsing mechanism will partially match it to main
function arguments before matching the ...
arguments.
A ggplot object.
plotClusterGeneViolin(pbmcPlot, varFeatures(pbmcPlot)[1:10])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.