50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


diceplot (version 0.1.7)

create_custom_domino_legends: Create custom legends for the domino plot

Description

Create custom legends for the domino plot

Usage

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,
  legend_text_size = 8
)

Value

A ggplot object containing custom legends.

Arguments

contrast_levels

A character vector of contrast level names.

var_positions

A data frame containing variable positions.

var_id

A string representing the column name for the variable identifier.

contrast

A string representing the column name for the contrast variable.

logfc_colors

A named vector specifying the colors for the log fold change scale.

logfc_limits

A numeric vector of length 2 specifying the limits for the log fold change color scale.

color_scale_name

A string specifying the name of the color scale in the legend.

size_scale_name

A string specifying the name of the size scale in the legend.

min_dot_size

A numeric value indicating the minimum dot size.

max_dot_size

A numeric value indicating the maximum dot size.

legend_text_size

A numeric value indicating the text size for the legend.