change_gradient_breaks: Modify Color Ramp and Breaks

Description Usage Arguments

View source: R/heatplots.R

Description

Modify default colors and breaks used in the heatplot. The list of the colors and the list of breaks values must be equal. The default color ramp is blue-green-yellow-orange-red with breaks at 0 The break values can either be percentages (make sure the break values start with zero and end with 1) or the actual values of the variable. The actual values will be remapped internally to be between zero and one.

Usage

1
2
change_gradient_breaks(new_colors = c("blue", "green", "yellow", "orange",
  "red"), mapped_break_values = c(0, 0.25, 0.5, 0.75, 1))

Arguments

new_colors

vector of colors to apply to the heatplot fill

mapped_break_values

vector of the break values to use for the specific colors (length of vector must match new_colors)


ucd-cws/wq-heatplot documentation built on May 3, 2019, 2:19 p.m.