Configure a figure.

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

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)
      )
    )
  )