
Annotate a Polar Plot with Axis Labels
annotate_polar_axis.RdThis is a wrapper around ggplot2::annotate() which draws the y-axis labels
directly on the plot, and optionally drops the labels at the side. Note that,
owing to the way ggplot2::geom_col() interacts with
ggplot2::coord_polar(), the .rose_angle argument should be used with
rose_pollution() and rose_wind().
Usage
annotate_polar_axis(
  breaks,
  direction = "NW",
  labels = breaks,
  drop = TRUE,
  ...,
  .rose_angle = NULL
)Arguments
- breaks
- The axis breaks to label on the plot. It may be appropriate to use - seq()to obtain equally spaced labels.
- direction
- The angles at which to write the labels. Can be expressed numerically, or using cardinal direction abbreviations ("N", "NNE", "NE", "ENE", etc.). 
- labels
- The labels to use for each value of - breaks. Defaults to- breaks.
- drop
- Remove the y-axis labels to the side of the plot? Defaults to - TRUE. Note that this option is overriden by complete themes such as- ggplot2::theme_minimal()or- theme_polar().
- ...
- Arguments to pass to - ggplot2::annotate().
- .rose_angle
- The number passed to the - angleargument of- rose_pollution()/- rose_wind(). This is required to adjust- wdwhen it is near to North/0 due to the way- ggplot2::geom_col()interacts with- ggplot2::coord_polar().
Value
An annotation to be added to ggplot2::ggplot().
See also
Other polar annotation functions: 
annotate_polar_wedge(),
annotate_rose_text()
Examples
if (FALSE) {
polar_plot(mydata, "nox") + annotate_polar_axis(seq(5, 25, 5))
}