Skip to content

Instantly share code, notes, and snippets.

@qoelet
Created July 21, 2011 22:47
Show Gist options
  • Save qoelet/1098419 to your computer and use it in GitHub Desktop.
Save qoelet/1098419 to your computer and use it in GitHub Desktop.
metals <- data.frame(gold, silver) # gold, silver are vectors containing the closing prices
qplot(gold, silver, data=metals, geom=c("point", "smooth"), method="lm")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment