Created
May 28, 2011 20:10
-
-
Save milktrader/997184 to your computer and use it in GitHub Desktop.
Import two xts objects from Yahoo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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