The highcharter R package is a wrapper for the Highcharts JavaScript library.
It provides an interface to create interactive charts and visualizations in R. With highcharter, you can easily plot various R objects, including data frames, numeric vectors, time series, and more.
The package supports Highstock charts, choropleths, and offers themes for customization. If you’re interested in data visualization, highcharter is a powerful tool to explore!
library(highcharter)
Options regarding the chart area and plot area as well as general chart options.
hc_chart(hc, ...)
hc
: A highchart htmlwidget object....
: Arguments defined in http://api.highcharts.com/highcharts#chart.data(citytemp)
head(citytemp)
## # A tibble: 6 x 5
## month tokyo new_york berlin london
## <fct> <dbl> <dbl> <dbl> <dbl>
## 1 Jan 7 -0.2 -0.9 3.9
## 2 Feb 6.9 0.8 0.6 4.2
## 3 Mar 9.5 5.7 3.5 5.7
## 4 Apr 14.5 11.3 8.4 8.5
## 5 May 18.2 17 13.5 11.9
## 6 Jun 21.5 22 17 15.2
hc <- highchart() %>%
hc_xAxis(categories = citytemp$month) %>%
hc_add_series(name = "Tokyo", data = citytemp$tokyo) %>%
hc_add_series(name = "London", data = citytemp$london)
hc
hc %>%
hc_chart(type = "column",
options3d = list(enabled = TRUE, beta = 15, alpha = 15))
hc %>%
hc_chart(borderColor = '#EBBA95',
borderRadius = 10,
borderWidth = 2,
backgroundColor = list(
linearGradient = c(0, 0, 500, 500),
stops = list(
list(0, 'rgb(255, 255, 255)'),
list(1, 'rgb(200, 200, 255)')
)
)
)