View source: R/default.grin.colors.R
default.grin.colors | R Documentation |
Assigns a default set of colors to lesion types for use in GRIN plots.
default.grin.colors(lsn.types)
lsn.types |
A character vector of unique lesion types, typically derived from the lesion data. |
This function provides a predefined palette of up to 10 distinct colors for lesion types used in GRIN visualizations. If more than 10 lesion types are provided, the function will prompt the user to manually define custom colors to ensure visual distinction.
A named character vector of colors corresponding to each lesion type.
Abdelrahman Elsayed abdelrahman.elsayed@stjude.org, Stanley Pounds stanley.pounds@stjude.org
Pounds, S. B., et al. (2013). A genomic random interval model for statistical analysis of genomic lesion data.
Cao, X., Elsayed, A. H., & Pounds, S. B. (2023). Statistical Methods Inspired by Challenges in Pediatric Cancer Multi-omics.
data(lesion_data)
# Extract unique lesion types
lsn.types <- unique(lesion_data$lsn.type)
# Assign default colors to lesion types
default.grin.colors(lsn.types)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.