Skip to contents

Besides the d3 colour schemes (e.g. "schemeSet2"), the gene colours can be set by the name of a geneviewer palette, in GC_theme() (palette) and in the colorScheme of GC_genes(), GC_transcript() and GC_color():

Usage

geneviewer_palette(name = NULL)

Arguments

name

Name of the palette. Default is NULL: the names of all palettes.

Value

The colours of the palette, or the names of all palettes.

Details

  • "okabeIto": 8 colours that stay distinct with colour blindness (Okabe & Ito, also known as the Wong palette), the palette of the "publication" theme.

  • "classic": 9 clear colours, the palette of the "classic" theme.

  • "vivid": 9 bright colours for dark backgrounds.

  • "dark": 11 soft colours for dark backgrounds, the palette of the "dark" theme.

  • "vintage": 10 muted colours, the palette of the "vintage" theme.

  • "infographic": 15 strong colours, the palette of the "infographic" theme.

  • "greys": 6 greys, from dark to light.

  • "blues": 7 blues, from dark to light.

Examples

geneviewer_palette("okabeIto")
#> [1] "#E69F00" "#56B4E9" "#009E73" "#F0E442" "#0072B2" "#D55E00" "#CC79A7"
#> [8] "#999999"
geneviewer_palette()
#> [1] "okabeIto"    "classic"     "vivid"       "dark"        "vintage"    
#> [6] "infographic" "greys"       "blues"      

genes_data <- data.frame(
  start = c(10, 90, 130, 170, 210),
  end = c(40, 120, 160, 200, 240),
  group = c('A', 'B', 'B', 'A', 'C')
)
GC_chart(genes_data, group = "group", height = "100px") %>%
  GC_genes(colorScheme = "okabeIto")