Useful for creating common color legend for multiple scatter plots
1 2 | get_color_legend(cell_type, my_color_palette, ncol = NULL,
legend.position = "right", legend.title = "Cell type", ...)
|
cell_type |
factor or vector of the batch labels |
my_color_palette |
a vector of colors e.g., |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.