Learn R Programming

c3 (version 0.3.0)

RColorBrewer: RColorBrewer Palette

Description

Use RColorBrewer palettes

Usage

RColorBrewer(c3, pal = "Spectral")

# S3 method for c3 RColorBrewer(c3, pal = "Spectral")

Arguments

c3

c3 htmlwidget object

pal

character palette must match `RColorBrewer::brewer.pal.info`

Value

c3

See Also

Other c3: c3, grid, legend, region, subchart, tooltip, xAxis, zoom

Examples

Run this code
# NOT RUN {
data.frame(a = c(1,2,3,2), b = c(2,4,1,5), c = c(5,3,4,1)) %>%
  c3() %>%
  RColorBrewer()

# }

Run the code above in your browser using DataLab