adjust: Adjust

Description Usage Arguments Types Examples

View source: R/adjust.R

Description

Adjust a figure.

Usage

1
adjust(type, margin = NULL, dodge_by = NULL)

Arguments

type

A vector of types of adjustement to apply to the figure, see the "types" section below for valid values.

margin

Margin, between 0 and 1.

dodge_by

Bare column name to use as group for dodge.

Types

Valid values for the type argument.

Examples

1
2
3
4
5
6
7
8
df <- data.frame(
  x = c(letters, letters),
  y = runif(52),
  grp = rep(c("A", "Z"), each = 2)
)

g2(df, asp(x, y, color = grp)) %>%
  fig_interval(adjust("stack"))

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