set_enrichplot_color: set_enrichplot_color

View source: R/utilities.R

set_enrichplot_colorR Documentation

set_enrichplot_color

Description

helper function to set color for enrichplot

Usage

set_enrichplot_color(
  colors = get_enrichplot_color(2),
  type = "color",
  name = NULL,
  .fun = NULL,
  reverse = TRUE,
  ...
)

Arguments

colors

user provided color vector

type

one of 'color', 'colour' or 'fill'

name

name of the color legend

.fun

force to use user provided color scale function

reverse

whether reverse the color scheme, default is TRUE as it is more significant for lower pvalue

...

additional parameter that passed to the color scale function

Value

a color scale


GuangchuangYu/enrichplot documentation built on Dec. 18, 2024, 7:55 p.m.