Description Usage Arguments Examples
View source: R/api-hc-hc_add_series-deprecated.R
This function helps to create highstock charts from xts
objects
obtaining by getSymbols
function from the quantmod.
1 | hc_add_series_xts(hc, x, ...)
|
hc |
A |
x |
A |
... |
Aditional shared arguments for the data series (http://api.highcharts.com/highcharts#series). |
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
library("quantmod")
usdjpy <- getSymbols("USD/JPY", src="oanda", auto.assign = FALSE)
eurkpw <- getSymbols("EUR/KPW", src="oanda", auto.assign = FALSE)
highchart(type = "stock") %>%
hc_add_series_xts(usdjpy, id = "usdjpy") %>%
hc_add_series_xts(eurkpw, id = "eurkpw")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.