在ggplot里面加上下面的代码即可
stat_fit_glance(method = 'lm', method.args = list(formula = formula), geom = 'text', aes(label = paste("p = ", signif(..p.value.., digits = 4), sep = "")), size = 2)+
在ggplot里面加上下面的代码即可
stat_fit_glance(method = 'lm', method.args = list(formula = formula), geom = 'text', aes(label = paste("p = ", signif(..p.value.., digits = 4), sep = "")), size = 2)+