Skip to content

Instantly share code, notes, and snippets.

@pachevalier
Created August 26, 2013 15:20
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 pachevalier/6342620 to your computer and use it in GitHub Desktop.
Save pachevalier/6342620 to your computer and use it in GitHub Desktop.
N <- 1000
sim <- data.frame(
u = 100 * rnorm(N), x = 1 + 100 *rnorm(N)
)
y <- 100 + sim$x + 100*sim$u
ggplot(data = sim, aes(x = x, y = y)) +
geom_point() + theme_bw() +
scale_y_continuous()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment