directlabels - utility.function - Positioning Method - extreme.points

Label the points furthest from the middle for each group.

extreme.points <- function(d,...){
  d$ <- sqrt((d$x-midrange(d$x))^2+(d$y-midrange(d$y))^2)
Please contact Toby Dylan Hocking if you are using directlabels or have ideas to contribute, thanks!
Documentation website generated from source code version 2021.2.24 (git revision bb6db07 Mon, 14 Jun 2021 22:38:45 +0530) using inlinedocs.