Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Input
library(ggplot2)
data(mpg, package="ggplot2")
mpg <- read.csv("http://goo.gl/uEeRGu")
g <- ggplot(mpg, aes(x=displ, y=hwy)) +
geom_point() +
geom_smooth(method="lm") +
theme_bw()
plot(g)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.