Skip to content

Instantly share code, notes, and snippets.

@richarddmorey
Created December 23, 2017 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richarddmorey/4fc049a10a66d6fd8cf79c3a2b2c7469 to your computer and use it in GitHub Desktop.
Save richarddmorey/4fc049a10a66d6fd8cf79c3a2b2c7469 to your computer and use it in GitHub Desktop.
data(attitude)
o = lm(rating ~ complaints, data = attitude)
par(mfrow=c(1,2), bg="white")
plot(rating ~ complaints, data = attitude)
abline(o, col = "red")
plot(o, ask = FALSE)

plot of chunk unnamed-chunk-2plot of chunk unnamed-chunk-2plot of chunk unnamed-chunk-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment