Skip to contents

Provides a list of annotation layers that mark 45, 135, 225, and 315 degrees on a unit circle.

Usage

degree_labs(display = circ_display(), colour = "black", units = NULL)

Arguments

display

A [`circ_display`] object. Default `circ_display()`. Supplies the label units when `units` is `NULL`.

colour

Label colour. Default `"black"`.

units

`"degrees"` (e.g. `45°`) or `"radians"` (e.g. `π/4`). When `NULL` (default) the units are taken from `display`.

Value

A list of ggplot2 annotation layers.

Examples

library(ggplot2)
ggplot() +
  coord_fixed() +
  degree_labs()