Skip to contents

Add an annotation to a rose_pollution() or rose_wind() plot. This annotation typically shows the mean pollutant or wind speed value, along with the percentage calm value.

Usage

annotate_rose_text(
  y,
  wd = 135,
  rose_angle = 30,
  size = 3,
  alpha = 1,
  fun = "label",
  ...
)

Arguments

y

Y value at which to draw the annotation.

wd

The wind direction at which to draw the annotation. Can be either numeric, where 0 is North and 180 is South, or a character representing a cardinal direction ("N", "NE", "E", etc.).

rose_angle

The number passed to the angle argument of rose_pollution()/rose_wind(). This is required to adjust wd due to the way ggplot2::geom_col() interacts with ggplot2::coord_polar().

size

Size of the annotation.

alpha

Alpha value of the annotation, where 1 is opaque and 0 is transparent.

fun

One of "label" or "text", which will use ggplot2::geom_label() or ggplot2::geom_text(), respectively.

...

Other arguments to pass to fun.

See also

Other polar annotation functions: annotate_polar_axis(), annotate_polar_wedge()