Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. library(ggplot2)
  2. library(ggpmisc)
  3. formula <- y ~ x
  4. ggplot(dados, aes(x = x, y = y)) +
  5. geom_point() +
  6. geom_smooth(method = "lm", se = T, color = "black", formula = formula) +
  7. ggpmisc::stat_poly_eq(aes(label = paste(..eq.label.., ..adj.rr.label.., sep = "~~~~")),
  8. formula = formula, parse = TRUE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement