
This function add a time series to a highchart
object.
hc_add_series_times_values(hc, dates, values, ...)
A highchart
htmlwidget
object.
A date vector (same length as values
)
A numeric vector
Additional arguments for the data series (http://api.highcharts.com/highcharts#series).
This function modify the type of chart
to datetime
# NOT RUN {
# }
# NOT RUN {
require("ggplot2")
data(economics, package = "ggplot2")
hc_add_series_times_values(hc = highchart(),
dates = economics$date,
values = economics$psavert,
name = "Personal Savings Rate")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab