draw_prism_offset: Grob for offset axes

View source: R/guide_prism_offset.R

draw_prism_offsetR Documentation

Grob for offset axes

Description

Grob for offset axes

Usage

draw_prism_offset(
  break_positions,
  break_labels,
  axis_position,
  theme,
  check.overlap = FALSE,
  angle = NULL,
  n.dodge = 1
)

Arguments

break_positions

position of ticks

break_labels

labels at ticks

axis_position

position of axis (top, bottom, left or right)

theme

A complete theme object

check.overlap

silently remove overlapping labels, (recursively) prioritizing the first, last, and middle labels.

angle

Compared to setting the angle in theme / element_text, this also uses some heuristics to automatically pick the hjust and vjust that you probably want.

n.dodge

The number of rows (for vertical axes) or columns (for horizontal axes) that should be used to render the labels. This is useful for displaying labels that would otherwise overlap.


ggprism documentation built on Nov. 4, 2022, 5:08 p.m.