agg_autolabel.Rd
Add automatically placed label
agg_autolabel(quiet = FALSE, arrow_lines = TRUE, arrow_bars = FALSE)
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. |
vignette("plotting-options", package = "arphit")
for a detailed description of
all the plotting options
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()#>#> Finding location for y1 ...................#> Finding location for y2 ...................