Learn R Programming

ggthemes (version 3.2.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
library("ggplot2")
p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
     colour=factor(gear))) + facet_wrap(~am)
p + theme_hc() + scale_colour_hc()
p + theme_hc(bgcolor = 'darkunica') + scale_colour_hc('darkunica')

Run the code above in your browser using DataLab