Learn R Programming

g6R (version 0.1.0)

g6_set_theme: Set the theme for a g6 graph via proxy

Description

This function sets the theme for an existing g6 graph instance

Usage

g6_set_theme(graph, theme)

Value

The g6_proxy object (invisibly), allowing for method chaining.

Arguments

graph

A g6_proxy object created with g6_proxy.

theme

A character string representing the theme to apply to the graph. There are 2 internal predefined themes: light and dark. Alternatively, you can pass a custom theme object that conforms to the G6 theme specifications, according to the documentation at https://g6.antv.antgroup.com/en/manual/theme/custom-theme.

See Also

g6_proxy()