powered by
n
Takes a numeric value n and returns a character vector of colour HEX codes corresponding to the heat map palette.
heat_colours(n, alpha, rev = FALSE)heat_colors(n, alpha, rev = FALSE)
heat_colors(n, alpha, rev = FALSE)
A character vector containing the HEX codes and the same length as n is returned.
the number of colors (>= 1) to be in the palette.
an alpha-transparency level in the range of 0 to 1 (0 means transparent and 1 means opaque)
logical indicating whether the ordering of the colors should be reversed.
Other Support: camel_clean(), check_inputs(), combine_signals(), cut_hour(), extract_date_range(), extract_hr(), is_date_format(), maxmin(), p_test(), pairwise_count(), plot_WOE(), read_preamble(), rgb2hex(), totals_bind(), totals_col(), totals_reorder(), tstamp(), us_to_space(), wrap()
camel_clean()
check_inputs()
combine_signals()
cut_hour()
extract_date_range()
extract_hr()
is_date_format()
maxmin()
p_test()
pairwise_count()
plot_WOE()
read_preamble()
rgb2hex()
totals_bind()
totals_col()
totals_reorder()
tstamp()
us_to_space()
wrap()
barplot(rep(10, 50), col = heat_colours(n = 50), border = NA) barplot(rep(10, 50), col = heat_colours(n = 50, alpha = 0.5, rev = TRUE), border = NA)
Run the code above in your browser using DataLab