Add automatically placed label

agg_autolabel(quiet = FALSE, arrow_lines = TRUE, arrow_bars = 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.

See also

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

Examples

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()
#> dev.new(): using pdf(file="Rplots107.pdf")
#> Finding location for y1 ...................
#> Finding location for y2 ...................