sctyner / geomnet

Examples and data for geom_net
http://sctyner.github.io/geomnet/
97 stars 23 forks source link

geomnet::geom_circle radius is proportional to grid limits, not to actual grid #33

Open yhoogstrate opened 3 years ago

yhoogstrate commented 3 years ago

I am not sure if this is a bug or a feature. If this is a feature, adding an argument to offer both would be really helpful.

when creating circles with geom_circle, the radius is proportional to the limits of the figure. Thus, a radius of 0.5 reflects 0.5 times the x and the y axis of the screen. Given it's the radius, it would completely fill the figure. It would be more intuitive and streamlined with other gg functions to have the radius using the actual x and y values on the grid.

kind regards

Youri


edit:

I wrote a solution:

https://github.com/yhoogstrate/geomnet

I am not too deep into the gg enviroment so this probably isn't the most elegant solution.