Skip to content

Instantly share code, notes, and snippets.

@milktrader
Created May 28, 2011 20:10
Show Gist options
  • Save milktrader/997184 to your computer and use it in GitHub Desktop.
Save milktrader/997184 to your computer and use it in GitHub Desktop.
Import two xts objects from Yahoo
# install.packages("quantmod")
require("quantmod")
getSymbols("^GSPC;^VIX")
plot(VIX)
par(new=TRUE)
plot(GSPC)
axis(4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment