Produce single violin plot with data frame passed from upstream
.ggCellViolin(
plotDF,
y,
groupBy = NULL,
colorBy = NULL,
violin = TRUE,
violinAlpha = 0.8,
violinWidth = 0.9,
box = FALSE,
boxAlpha = 0.6,
boxWidth = 0.4,
dot = FALSE,
dotColor = "black",
dotSize = getOption("ligerDotSize"),
raster = NULL,
seed = 1,
...
)
ggplot object by default. When plotly = TRUE
, returns
plotly (htmlwidget) object.
Data frame like object (fortifiable) that contains all necessary information to make the plot.
See plotCellViolin
.
Logical, whether to add violin plot, box plot or dot (scatter) plot, respectively. Layers are added in the order of dot, violin, and violin on the top surface. By default, only violin plot is generated.
Numeric, controls the transparency of layers.
Default 0.8
, 0.6
, respectively.
Numeric, controls the width of violin/box
bounding box. Default 0.9
and 0.4
.
Numeric, globally controls the appearance of all
dots. Default "black"
and getOption("ligerDotSize")
(1).
Logical, whether to rasterize the dot plot. Default NULL
automatically rasterizes the dot plot when number of total cells to be
plotted exceeds 100,000.
Random seed for reproducibility. Default 1
.
More theme setting arguments passed to
.ggplotLigerTheme
.