The code for creating a function that maps values to colors for ComplexHeatmap
heatmaps is not easy for me to remember. Here it is.
Details
My favorite colors to use include:
viridis::viridisscico::scico(n, palette = "vik")
You can also use scico::scico_palette_show() to see other colorblind safe palettes.
See also
Other Code Generators:
ft_add_padding(),
ft_data_dictionary(),
ft_ggplot2_add_ellipse(),
ft_ggplot2_colors(),
ft_ggplot2_legend_inside(),
ft_ggplot2_rotate_axis_labels(),
ft_ggplot2_self_colors(),
ft_knitr_opts(),
ft_plot_includes(),
ft_remove_figures(),
ft_rename_code(),
ft_title_block(),
ft_upset_add_counts(),
ft_upset_comb_matrix()
Other Colors:
ft_discretize_colorscale(),
ft_ggplot2_colors()