.set_color_palette | R Documentation |
Internal function to determine the appropriate color palette based on the number of elements in the leave-one-out results.
.set_color_palette(loo_results)
loo_results |
Output from |
When the number of rows in the leave-one-out results exceeds 20, a viridis color scale is used. Otherwise, a color-blind friendly manual palette is applied.
A list with two components:
color_layer |
A ggplot2 scale object for mapping colors. |
fill_layer |
A ggplot2 scale object for mapping fill colors. |
Facundo Decunta - fdecunta@agro.uba.ar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.