## Not run:
#
# library("quantmod")
#
# usdjpy <- getSymbols("USD/JPY", src="oanda", auto.assign = FALSE)
#
# dates <- as.Date(c("2015-05-08", "2015-09-12"), format = "%Y-%m-%d")
# highchart(type = "stock") %>%
# hc_add_series_xts(usdjpy, id = "usdjpy") %>%
# hc_add_series_flags(dates,
# title = c("E1", "E2"),
# text = c("This is event 1", "This is the event 2"),
# id = "usdjpy")
# ## End(Not run)
Run the code above in your browser using DataLab