📅  最后修改于: 2022-03-11 14:51:57.894000             🧑  作者: Mango
my.formula = df$y ~ df$x
ggplot(..) +
stat_poly_eq(formula = my.formula, aes(label=paste(..eq.label.., ..rr.label.., sep = "~~~")),
geom="label", parse = T, label.y=10, label.x=10)