Learn R Programming

echarts4r (version 0.2.0)

e_color_range: Color range

Description

Build manual color range

Usage

e_color_range(data, input, output, colors = c("#bf444c", "#d88273",
  "#f6efa6"), ...)

e_color_range_(data, input, output, colors = c("#bf444c", "#d88273", "#f6efa6"), ...)

Arguments

data

Data.frame in which to find column names.

input, output

Input and output columns.

colors

Colors to pass to colorRampPalette.

...

Any other argument to pass to colorRampPalette.

Examples

Run this code
# NOT RUN {
df <- data.frame(val = 1:10)

e_color_range(df, val, colors)
  
# }

Run the code above in your browser using DataLab