config: Configure Figure

Description Usage Arguments Examples

View source: R/config.R

Description

Configure a figure.

Usage

1
2
3
4
5
6
7
8
config(
  id = NULL,
  visible = NULL,
  region = NULL,
  padding = NULL,
  theme = NULL,
  ...
)

Arguments

id

Id of figure.

visible

Whether the figure is visible.

region

Region that the figure should occupy on the canvas.

padding

Padding around the figure.

theme

Theme of the figure.

...

Any other options from the official documentation.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
mtcars %>%
  g2(asp(qsec)) %>%
  fig_point(
    asp(y = mpg),
    config(
      region = list(
        start = list(x = 0, y = 0),
        end = list(x = 0.5, y = 1)
      )
    )
  ) %>%
  fig_point(
    asp(y = wt),
    config(
      region = list(
        start = list(x = 0.5, y = 0),
        end = list(x = 1, y = 1)
      )
    )
  )

devOpifex/g2r documentation built on Jan. 16, 2022, 12:36 a.m.