Skip to main content

interp_palette

Function interp_palette 

Source
fn interp_palette(
    args: &[RValue],
    _named: &[(String, RValue)],
    ctx: &BuiltinContext<'_>,
) -> Result<RValue, RError>
Expand description

Get or set the color palette.

With no argument, returns the current palette as a character vector. With a character vector argument, sets the palette and returns the old one. With "default", resets to R’s default palette.

@param value optional new palette (character vector of color specs, or “default”) @return character vector of the (previous) palette