Description Usage Arguments Details Functions Examples
Set the motif of the chart, defaults to light.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24  | motif(
  g,
  ...,
  brandColor = NULL,
  backgroundColor = "transparent",
  renderer = c("canvas", "svg"),
  padding = "auto",
  visible = TRUE
)
global_motif(
  ...,
  brandColor = NULL,
  backgroundColor = "transparent",
  renderer = c("canvas", "svg"),
  padding = "auto",
  visible = TRUE
)
motif_from_json(g, path)
motif_from_list(g, motif)
motif_as_list(..., brandColor = NULL, backgroundColor = "transparent")
 | 
g | 
 An object of class   | 
... | 
 Key value pair defining style, or
  | 
brandColor | 
 Main default color.  | 
backgroundColor | 
 Plot background color.  | 
renderer | 
 Renderer to use, defaults to   | 
padding | 
 An integer, or a vector of length 4.  | 
visible | 
 Whether the chart is visible.  | 
path | 
 Path to JSON file.  | 
motif | 
 List defnining the theme, similar to JSON.  | 
The function motif_from_json() can be used to
define the theme from a JSON file of theme, to see the
default theme file:
system.file("theme.json", package = "g2r").
motif: Defines the motif of a visualisation.
motif_from_json: Defines the motif from a JSON
file of theme, see the theme file.
system.file("theme.json", package = "g2r")
motif_from_list: Defines the motif from a list,
derived from the JSON file.
motif_as_list: Returns a motif as a list to use
with motif_from_list().
global_motif: Define a global motif that will be used by
all subsequent charts.
1 2 3 4 5 6 7 8 9 10 11 12 13  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.