Useful for creating common color legend for multiple scatter plots
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., |