Skip to content

Instantly share code, notes, and snippets.

@ggada
Last active February 13, 2017 19:36
Show Gist options
  • Save ggada/2c26ed56a3601b3ac3756fc61be27683 to your computer and use it in GitHub Desktop.
Save ggada/2c26ed56a3601b3ac3756fc61be27683 to your computer and use it in GitHub Desktop.
Linear regression line - GXY
plot(height,
main = "Son height vs. Father height",
xlab = "Father height",
ylab = "Son height")
abline(lm(height$sheight ~ height$fheight, data = height))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment