Learn R Programming

ggthemes (version 2.1.0)

theme_hc: Highcharts JS theme

Description

Theme based on the plots in Highcharts JS.

Usage

theme_hc(base_size = 12, base_family = "sans", bgcolor = "default")

Arguments

base_size
base font size
base_family
base font family
bgcolor
The background color of plot. One of "default", "darkunica", the names of values in ggthemes_data$hc$bg.

References

http://www.highcharts.com/demo/line-basic

https://github.com/highslide-software/highcharts.com/tree/master/js/themes

Examples

Run this code
(qplot(hp, mpg, data = mtcars, geom = "point")
+ scale_colour_hc()
+ ggtitle("Diamond Prices")
+ theme_hc())
## Use a Dark-Unica theme
(qplot(hp, mpg, data = mtcars, geom = "point")
+ scale_colour_hc("darkunica")
+ ggtitle("Diamond Prices")
+ theme_hc(bgcolor = "darkunica"))

Run the code above in your browser using DataLab