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

Color fitted lines based on p value or R^2 #17

Closed aphalo closed 3 years ago

aphalo commented 3 years ago

The question at https://stackoverflow.com/questions/68998729/color-ggscatter-by-r-and-p-values is important. For stat_xxx_eq() this is possible for the equation, a similar approach applied to stat_xx_line() functions would allow coloring or even hiding fitted lines based on p.value of R^2. We should also make R^2adj available. This is fairly easy to implement...

aphalo commented 3 years ago

Implemented in what will become version 0.4.4 when submitted to CRAN is some weeks' time. commit a23f633b34e14fa333c7b966e309e9c78f36d810