View source: R/color_functions.R
color_subcluster | R Documentation |
Make a vector of colors for a vector of subclusters grouped by their assignment to a cluster
color_subcluster(
subcluster,
cluster,
cluster_colors = c(),
order = TRUE,
brightness_change = NA,
max_change = 1
)
subcluster |
vector of subcluster assignments (can be duplicated across cell assignments) |
cluster |
vector of cluster assignment for each subcluster (vector of same length as subcluster) |
cluster_colors |
(named) vector of colors for each cluster |
order |
should colors be ordered by subcluster size? Set to FALSE to use factor levels |
brightness_change |
how big a change in color brightness should be applied at each step (between 0 and 1) |
vector of colors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.