get_available_legends | R Documentation |
Helper function to determine which legend types are available for the current DotPlot2 configuration.
get_available_legends(split.by, split.by.method, border)
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) |
Character vector of available legend types
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.