hc_add_series_xts: Shorcut for create highstock chart from 'xts' object

Description Usage Arguments Examples

Description

This function helps to create highstock charts from xts objects obtaining by getSymbols function from the quantmod.

Usage

1

Arguments

hc

A highchart htmlwidget object.

x

A xts object from the quantmod package.

...

Aditional shared arguments for the data series (http://api.highcharts.com/highcharts#series).

Examples

 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)


Search within the highcharter package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.