Learn R Programming

highcharter (version 0.9.4)

color_classes: Function to create dataClasses argument in hc_colorAxis

Description

Function to create dataClasses argument in hc_colorAxis

Usage

color_classes(breaks = NULL, colors = c("#440154", "#21908C", "#FDE725"))

Arguments

breaks

A numeric vector

colors

A character string of colors (ordered)

Examples

Run this code
# NOT RUN {
color_classes(c(0, 10, 20, 50))
# }

Run the code above in your browser using DataLab