Skip to content

Instantly share code, notes, and snippets.

@erzk
Last active January 19, 2017 10:05
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 erzk/61669da6b12c36e11f27 to your computer and use it in GitHub Desktop.
Save erzk/61669da6b12c36e11f27 to your computer and use it in GitHub Desktop.
dygraph(gbppln_xts,
main="British Pound (GBP) to Polish Zloty (PLN) 1996-2015",
ylab="GBP/PLN") %>%
dyRangeSelector(height = 50) %>%
dyEvent(date = "2004-05-01", "Poland joining the EU", labelLoc = "bottom") %>%
dyEvent(date = "2008-09-15", "Bankruptcy of Lehman Brothers", labelLoc = "top")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment