plotMeanMedValuesPerCellType | R Documentation |
Plot bar, point or boxplots showing mean/median values per cell type. This is a generic function for plotting mean or median values per cell type (used for expression shift distances and others).
plotMeanMedValuesPerCellType(
df,
pvalues = NULL,
type = c("box", "point", "bar"),
show.jitter = TRUE,
notch = TRUE,
jitter.alpha = 0.05,
palette = NULL,
ylab = "expression distance",
yline = 1,
plot.theme = theme_get(),
jitter.size = 1,
line.size = 0.75,
trim = 0,
order.x = TRUE,
pvalue.y = NULL,
y.max = NULL,
y.offset = NULL,
ns.symbol = "",
coord.flip = FALSE
)
df |
dataframe containing the results, including $value and $Type slots which will be summarized |
type |
character vector (default=c('box', 'point', 'bar')) Type of a plot "bar" (default), "point" (mean + sd), or "box" for boxplot |
show.jitter |
boolean (default = FALSE) Whether to show individual data points |
notch |
boolean Whether to show notches in the boxplot version (default=TRUE) |
jitter.alpha |
transparency value for the data points (default: 0.05) |
palette |
|
coord.flip |
flip coordinates of the plot |
A ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.