Skip to contents

guide_cutoff() draws one truthful marker rail and, when requested, one measured label lane per helper call. Two-sided labels dodge along that lane while their leaders remain tied to the truthful cutoff anchors. The guide receives already-computed cutoff values; it never inspects the distribution or recomputes a statistic.

Usage

guide_cutoff(
  value,
  label = NULL,
  side = NULL,
  call_id = 1L,
  colour = ggplot2::waiver(),
  shape = 24,
  size = 4,
  linewidth = 0.5,
  title = NULL,
  theme = NULL,
  order = 0,
  position = ggplot2::waiver()
)

GuideCutoff

Format

GuideCutoff is a ggplot2::Guide object.

Arguments

value

One or two finite numeric cutoff values in the position scale's data space.

label

Optional labels parallel to value.

side

Optional side names parallel to value, each either "lower" or "upper". Supply label and side together.

call_id

One positive integer identifying this guide instance.

colour

Colour of the markers, leaders, and labels.

shape

Marker shape. The default triangle points toward the panel.

size

Marker size.

linewidth

Width of marker outlines and leaders.

title

Optional guide title.

theme

A theme for this guide, or NULL.

order

Guide order.

position

Guide position. The default is derived from the scale.

Value

A ggplot2 guide.