Skip to content

Settings of a Built-in Theme ​

Returns the settings of a built-in theme of GC_theme(), to see them or to start a theme of your own. The options of components have the names of the chart spec, e.g. cornerRadius and textStyle (for GC_legend()'s corner_radius and legendTextOptions); GC_theme() takes both.

Usage ​

r
geneviewer_theme(name = "default")

Arguments ​

ArgumentDescription
nameName of the theme: "default", "classic", "dark", "vintage", "infographic", "publication" or "bw".

Value ​

A list of theme settings, to use as the theme of GC_theme().

Examples ​

r
geneviewer_theme("dark")

# A theme of your own, based on "classic"
my_theme <- utils::modifyList(geneviewer_theme("classic"),
                              list(textColor = "navy"))