hrbrmstr / ggalt

:earth_americas: Extra Coordinate Systems, Geoms, Statistical Transformations & Scales for 'ggplot2'
https://cran.r-project.org/web/packages/ggalt/vignettes/ggalt_examples.html
Other
654 stars 99 forks source link

better documentation for geom_encircle #57

Open bbolker opened 5 years ago

bbolker commented 5 years ago

I just had a request for the algorithm used by geom_encircle(). This is what I sent; I ought to flesh this out slightly and add it to the docs.

(1) finds the convex hull of the points (2) if desired (based on the 'expand' argument), moves the points defining the convex hull outward away from the centroid (3) constructs an 'xspline' through these points; the details of this (and a literature citation) are given in ?grid::xsplineGrob