I based stat_quant_line() partly on ggplot2::stat_quantile() while I wrote stat_quant_eq() almost from scratch. The current code for stat_quant_line() makes it impossible to retrieve the formula and class from the fitted model. As I have made it possible to use methods that modify the formula or call user defined functiions that in turn call a model fit function returning an acceptable fited model object, this represents a problematic inconsistency.
A rewrite based in stat_quant_eq() should not be too difficult.
I based
stat_quant_line()
partly onggplot2::stat_quantile()
while I wrotestat_quant_eq()
almost from scratch. The current code forstat_quant_line()
makes it impossible to retrieve the formula and class from the fitted model. As I have made it possible to use methods that modify the formula or call user defined functiions that in turn call a model fit function returning an acceptable fited model object, this represents a problematic inconsistency.A rewrite based in stat_quant_eq() should not be too difficult.