Annotate a wind or pollution rose with further information
annotate_rose_text.Rd
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.
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 ofrose_pollution()
/rose_wind()
. This is required to adjustwd
due to the wayggplot2::geom_col()
interacts withggplot2::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()
orggplot2::geom_text()
, respectively.- ...
Other arguments to pass to
fun
.
See also
Other polar annotation functions:
annotate_polar_axis()
,
annotate_polar_wedge()