ggGroup.Rd
This function is a wrapper around ggplot geom_density_ridges or geom_violin to allow for plotting group distribution plots in ArchR.
ggGroup(
x = NULL,
y = NULL,
xlabel = NULL,
ylabel = NULL,
groupOrder = NULL,
groupSort = FALSE,
size = 1,
baseSize = 10,
ridgeScale = 1,
ratioYX = NULL,
alpha = 1,
title = "",
pal = paletteDiscrete(values = x, set = "stallion"),
addBoxPlot = TRUE,
plotAs = "ridges",
...
)
A character vector containing the categorical x-axis values for each y-axis value.
A numeric vector containing the y-axis values for each point.
The label to plot for the x-axis.
The label to plot for the y-axis.
A character vector indicating a custom order for plotting x-axis categorical values. Should contain all possible
values of x
in the desired order.
A boolean indicating whether to sort groups based on the average value of the group.
The line width for boxplot/summary lines.
The base font size (in points) to use in the plot.
A numeric indicating the relative size for each ridge in the ridgeplot.
The aspect ratio of the x and y axes on the plot.
A number indicating the transparency to use for each point. See ggplot2
for more details.
The title of the plot.
A named custom palette (see paletteDiscrete()
and ArchRPalettes
) for discrete coloring.
A boolean indicating whether to add a boxplot to the plot if plotAs="violin"
.
A string indicating how the groups should be plotted. Acceptable values are "ridges" (for a ggrides
-style plot) or "violin" (for a violin plot).
Additional parameters to pass to ggplot2
for plotting.