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

geom_encircle() when group has < 3 #82

Open HedvigS opened 1 year ago

HedvigS commented 1 year ago

I've noticed that if a dataset has a group with less than 3 rows, geom_encircle() goes wild and very wide. I'd like it to behave differently, or for there to be an option to set it to behave differently.

Here's an example of geom_encirucle with geographical points where each group (color aes) is just one or two rows of latitude and longitude data.

Rplot

HedvigS commented 1 year ago

In the meantime, i'm adding in rows to the df with "fake" rows that are duplicate with the Long and Lat varied by the variance of long and lat in the rest of the groups.