agg_autolabel: Add automatically placed label

Description Usage Arguments See Also Examples

View source: R/gg-constructors.R

Description

Add automatically placed label

Usage

1
2
agg_autolabel(quiet = FALSE, arrow_lines = TRUE, arrow_bars = FALSE,
  ignore_existing_labels = FALSE)

Arguments

quiet

(logical, default FALSE) Do not output progress of autolabeller

arrow_lines

(logical, default TRUE) Add arrows between labels and line series if there isn't line of sight between the label and the series.

arrow_bars

(logical, default FALSE) Add arrows between labels and bar series if there isn't line of sight between the label and the series.

ignore_existing_labels

(logical, default FALSE) Add labels to panels with already-existing manual labels. Set to TRUE to auto-place labels on such panels (note: will add all labels, as the autolabeller doesn't know which series, if any, the existing label is for)

See Also

vignette("plotting-options", package = "arphit") for a detailed description of all the plotting options

Examples

1
2
3
4
5
data <- data.frame(x=1:10,y1=rnorm(10),y2=rnorm(10))
arphitgg(data,agg_aes(x=x)) +
  agg_line(agg_aes(y=y1)) +
  agg_line(agg_aes(y=y2)) +
  agg_autolabel()

angusmoore/arphit documentation built on Feb. 15, 2021, 9:40 a.m.