Learn R Programming

highcharter (version 0.1.0)

hc_credits: Adding credits options to highchart objects

Description

highcarter by default don't put credits in the chart. You can add credits using these options.

Usage

hc_credits(hc, ...)

Arguments

hc
A highchart htmlwidget object.
...
Arguments defined in http://api.highcharts.com/highcharts#credits.

Examples

Run this code
require("dplyr")

data("citytemp")

highchart() %>% 
  hc_xAxis(categories = citytemp$month) %>% 
  hc_add_serie(name = "Tokyo", data = citytemp$tokyo, type = "bar") %>% 
  hc_credits(enabled = TRUE, text = "htmlwidgets.org",
             href = "http://www.htmlwidgets.org/")

Run the code above in your browser using DataLab