hc_add_series_ts: Shorcut for create/add time series charts from a ts object

Description Usage Arguments Details Examples

View source: R/api-hc-hc_add_series-deprecated.R

Description

This function add a time series to a highchart object from a ts object.

Usage

1

Arguments

hc

A highchart htmlwidget object.

ts

A time series object.

...

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

Details

This function modify the type of chart to datetime

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
highchart() %>% 
  hc_title(text = "Monthly Airline Passenger Numbers 1949-1960") %>% 
  hc_subtitle(text = "The classic Box and Jenkins airline data") %>% 
  hc_add_series_ts(AirPassengers, name = "passengers") %>%
  hc_tooltip(pointFormat =  '{point.y} passengers')

highchart() %>% 
  hc_title(text = "Monthly Deaths from Lung Diseases in the UK") %>% 
  hc_add_series_ts(fdeaths, name = "Female") %>%
  hc_add_series_ts(mdeaths, name = "Male")

## End(Not run)

highcharter documentation built on May 30, 2017, 1:47 a.m.