Skip to contents
0.16.6 documentation

Complete canonical API text; task articles explain the workflows. Tutorials

Site guide · find your task

These are the original grid functions, available after loading ggchord. Use physical units for theme spacing and arrows for point links.

Usage

Code
unit(x, units, data = NULL)

arrow(angle = 30, length = unit(0.25, "inches"), ends = "last", type = "open")

Arguments

x

Numeric unit values.

units

Unit names, such as mm, inches or npc.

data

Optional supplementary data for special grid units.

angle

Arrow-head angle in degrees.

length

Arrow-head length as a unit object.

ends

Which ends receive arrows: first, last or both.

type

Arrow-head style: open or closed.

Value

A grid unit or arrow object.

Examples

Code
unit(2, "mm")
arrow(length = unit(2, "mm"), type = "closed")