Colours of a geneviewer Palette
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
r
geneviewer_palette(name = NULL)Arguments
| Argument | Description |
|---|---|
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
r
geneviewer_palette("okabeIto")
geneviewer_palette()
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")