Posts

Showing posts with the label ggpmisc

ggpmisc::stat_poly_eq() does not consider weighting by a variable

ggpmisc::stat_poly_eq() does not consider weighting by a variable How can I get ggpmisc::stat_poly_eq() to take into account weighting by a variable? I don't see in the documentation a parameter to include weight as it exists in geom_smooth and if I try to force it within aes() it results in 'Warning: Ignoring unknown parameters: weight.' I am aware of other workarounds to print the correct equation as shown here but it would be so much cleaner to have it in stat_poly_eq(). Has anybody figured this out or am I missing something? Thanks everyone. stuff<-structure(list(var = 2:31, mean = c(17026.5, 11028.6842105263, 13113.1111111111, 11087.3679395386, 9863.8664212548, 10060.676012167, 9378.01091924399, 9790.67922990444, 8569.95788246269, 8839.68511390887, 7656.50625471556, 7370.78564257028, 7939.13425925926, 7541.83192090395, 8845.67474747475, 802...