Create custom legends for the domino plot
create_custom_domino_legends_categorical(
contrast_levels,
var_positions,
var_id,
contrast,
categorical_colors,
color_scale_name,
legend_text_size = 8,
left_rect_color = "lightblue",
right_rect_color = "lightpink"
)
A ggplot object containing custom legends.
A character vector of contrast level names.
A data frame containing variable positions.
A string representing the column name for the variable identifier.
A string representing the column name for the contrast variable.
A named vector specifying the colors for each category.
A string specifying the name of the color scale in the legend.
A numeric value indicating the text size for the legend.
A string specifying the color for the left rectangles.
A string specifying the color for the right rectangles.