aphalo / ggpmisc

R package ggpmisc is an extension to ggplot2 and the Grammar of Graphics
https://docs.r4photobiology.info/ggpmisc
94 stars 6 forks source link

Formatting of numbers in `stat_..._eq()` #27

Closed aphalo closed 3 months ago

aphalo commented 2 years ago

A question at Stackoverflow makes me think that the format string used for coeffient estimates could be a formal parameter of the stat_..._eq() functions.

Needs some tought as the formatting of the equation as a whole is far from trivial.

aphalo commented 3 months ago

I think the new eq and label utility functions take care of this. If the defaults and digits are not enough then these functions can be called or any other formatting function during mapping within a call to aes(). Thus, I close this issue.