create_custom_domino_legends | R Documentation |
Create custom legends for a domino plot
create_custom_domino_legends(
contrast_levels,
var_positions,
var_id,
contrast,
logfc_colors,
logfc_limits,
color_scale_name,
size_scale_name,
min_dot_size,
max_dot_size,
size_limits = NULL,
size_breaks = NULL,
legend_text_size = 8,
p_label_formatter = function(lp) sprintf("%.2g", 10^-lp)
)
contrast_levels |
Character vector of contrast level names. |
var_positions |
Data frame with variable positions. |
var_id |
Column name for the variable identifier. |
contrast |
Column name for the contrast variable. |
logfc_colors |
Named vector with "low", "mid", "high" colours. |
logfc_limits |
Numeric vector (length 2) for logFC scale limits. |
color_scale_name |
Title for the logFC colour legend. |
size_scale_name |
Title for the p-value size legend. |
min_dot_size , max_dot_size |
Numeric dot-size range. |
size_limits , size_breaks |
Passed to |
legend_text_size |
Base font size for legend text. |
p_label_formatter |
A function used to format the size legend labels (typically for p-values). Default is |
A combined ggplot
object with three aligned legends.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.