ggpmisc icon indicating copy to clipboard operation
ggpmisc copied to clipboard

`stat_poly_line()` and `stat_poly_eq()` add support for GLM

Open aphalo opened this issue 1 year ago • 3 comments

Although ggplot2::geom_smooth() supports method="glm", the stats from 'ggpmisc' do not. The problem seems to be related to naming differences that break the extraction of members from the returned objects. This applies to all families, even family = gaussian. See also #55.

aphalo avatar May 26 '24 09:05 aphalo

Because of link functions use, this is rather complex to implement. For prediction lines and confidence bands support exists in stat_smmoth() from 'ggplot2'. Fitted parameters labels could be more important to implement, but as predict and summary return objects with different structure for "lm" and "glm" it may be wiser to write new stats. I set this on hold and help wanted, and move its target milestone forward.

aphalo avatar May 28 '24 20:05 aphalo