Learn R Programming

highcharter (version 0.4.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.

Examples

Run this code


data("citytemp")

highchart() %>% 
  hc_xAxis(categories = citytemp$month) %>% 
  hc_add_series(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