grantmcdermott / tinyplot

Lightweight extension of the base R graphics system
https://grantmcdermott.com/tinyplot
Apache License 2.0
235 stars 7 forks source link

Polar coordinates #211

Open roaldarbol opened 1 month ago

roaldarbol commented 1 month ago

Hi again @grantmcdermott! Really enjoying tinyplot! I think this is a feature request (maybe I've missed an existing feature), but I've got no idea if it's hard to implement - so no worries if it's outside the scope. It would be great to be able to support polar coordinate systems, so it becomes possible to plot circular data.

grantmcdermott commented 1 month ago

Thanks, added to our master list of supported/request plot types here. I'm not sure about implementation difficulty and we'd also need to think about the interface, since the standard x and y arguments are probably confusing in the polar (radian + theta) context.

(Great to hear that you're liking the package!)

roaldarbol commented 1 month ago

Sounds good! I actually wouldn't think it is that confusing. Once one ventures into circular plots, my gut feeling is that people have an expectation of what will happen. Just my guess though! :P In ggplot, it just transforms the x and y values, so I'd expect the same syntax.