Convert ratios to colors for maps, heatmap text, or barplots
Source:R/calc_ejscreen_export.R
ratio2color.RdConvert ratios to colors for maps, heatmap text, or barplots
Usage
ratio2color(
x,
colorbins = ejscreen_color_defaults("ratio")$colorbins,
colorfills = ejscreen_color_defaults("ratio")$colorfills
)Details
Cutoffs belong to the higher bin. Values below the first cutoff, including negative values, receive the first color, matching barplots.