get_color_func: The Color Utility

View source: R/color.R

get_color_funcR Documentation

The Color Utility

Description

Get color function from BioVisReportR namespace.

Usage

get_color_func(palname = "npg", data_class = "discrete", mode = "fill")

Arguments

palname

palette name Currently there is 19 available options:

  • "npg"

  • "aaas"

  • "nejm"

  • "lancet"

  • "jama"

  • "jco"

  • "ucscgb"

  • "d3"

  • "locuszoom"

  • "igv"

  • "cosmic"

  • "uchicago"

  • "startrek"

  • "tron"

  • "futurama"

  • "rickandmorty"

  • "simpsons"

  • "gsea"

  • "material"

See the Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2 for details.

mode

the corresponding scales Currently there is 2 available options:

  • "fill"

  • "color"

Author(s)

Jingcheng Yang <yjcyxky@163.com>

References

https://nanx.me/ggsci/articles/ggsci.html

Examples

library("BioVisReportR")
nejm_fill_func <- get_color_func('nejm', 'fill')

go-choppy/ChoppyReportR documentation built on June 9, 2022, 11:49 p.m.