dot-set_color_palette: Set Color Palette for Orchard Plot

.set_color_paletteR Documentation

Set Color Palette for Orchard Plot

Description

Internal function to determine the appropriate color palette based on the number of elements in the leave-one-out results.

Usage

.set_color_palette(loo_results)

Arguments

loo_results

Output from leave_one_out(), which contains the leave-one-out analysis results.

Details

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.

Value

A list with two components:

color_layer

A ggplot2 scale object for mapping colors.

fill_layer

A ggplot2 scale object for mapping fill colors.

Author(s)

Facundo Decunta - fdecunta@agro.uba.ar


daniel1noble/orchaRd documentation built on April 17, 2025, 3:59 a.m.