Skip to content

Instantly share code, notes, and snippets.

@ggada
Last active February 13, 2017 11:38
Show Gist options
  • Save ggada/040305103bebee536feb67059d64fbc5 to your computer and use it in GitHub Desktop.
Save ggada/040305103bebee536feb67059d64fbc5 to your computer and use it in GitHub Desktop.
Residual scatter plot - ggplot2
ggplot(height, aes(height$fheight, mod$residuals)) +
geom_point(size=0.5) +
ggtitle("Residual plot of estimates") +
theme(plot.title = element_text(hjust = 0.5)) +
xlab("Father height") +
ylab("Son height")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment