get_color_legend: Legend for colors in a scatter plot

Description Usage Arguments

View source: R/plotting.R

Description

Useful for creating common color legend for multiple scatter plots

Usage

1
2
get_color_legend(cell_type, my_color_palette, ncol = NULL,
  legend.position = "right", legend.title = "Cell type", ...)

Arguments

cell_type

factor or vector of the batch labels

my_color_palette

a vector of colors e.g., c("red","blue","green") or hex color codes


YutongWangUMich/corgi documentation built on Oct. 26, 2019, 1:13 p.m.