PaperPlotR dot plot with summary overlay and optional significance
Source:R/comparison_plots.R
plot_dot_paper.RdPaperPlotR dot plot with summary overlay and optional significance
Usage
plot_dot_paper(
data,
x,
y,
group = NULL,
id = NULL,
paired = FALSE,
show_points = TRUE,
show_summary = TRUE,
summary_type = c("mean_se", "median_iqr"),
log_scale = FALSE,
dictionary = NULL,
palette = NULL,
facet = NULL,
comparisons = NULL,
show_signif = FALSE,
test = NULL,
...
)Arguments
- data
A data frame.
- x
Grouping column mapped to the x axis.
- y
Numeric response column mapped to the y axis.
- group
Optional grouping column used for fill mapping and dodging.
- id
Optional sample id column used for paired designs.
- paired
Whether to treat the design as paired.
- show_points
Whether to draw raw points.
- show_summary
Whether to add summary points and intervals.
- summary_type
Summary style, either
"mean_se"or"median_iqr".- log_scale
Whether to apply a log-scaled y axis.
- dictionary
Optional semantic color dictionary name.
- palette
Optional PaperPlotR palette name.
- facet
Optional faceting column.
- comparisons
Optional list of two-element character vectors used for significance annotation.
- show_signif
Whether to add significance annotations.
- test
Statistical test name. Currently only
"wilcox"is supported.- ...
Additional arguments forwarded to the underlying geometry layer.