get_available_legends: Get Available Legend Types for DotPlot2

View source: R/DotPlot.R

get_available_legendsR Documentation

Get Available Legend Types for DotPlot2

Description

Helper function to determine which legend types are available for the current DotPlot2 configuration.

Usage

get_available_legends(split.by, split.by.method, border)

Arguments

split.by

Split variable (same as in DotPlot2)

split.by.method

Split method: "border" or "color" (same as in DotPlot2)

border

Whether borders are used (same as in DotPlot2)

Value

Character vector of available legend types

Examples

# No split, with border
get_available_legends(split.by = NULL, split.by.method = "border", border = TRUE)
# Returns: c("size", "fill")

# Split by variable, using border method
get_available_legends(split.by = "condition", split.by.method = "border", border = TRUE)
# Returns: c("size", "fill", "color")

# Split by variable, using color method
get_available_legends(split.by = "condition", split.by.method = "color", border = TRUE)
# Returns: c("size", "color", "alpha")

huayc09/SeuratExtend documentation built on July 5, 2025, 1:41 a.m.