GetPalette: Determine colors to be used in a visualizatiom

View source: R/usetemplate.R

GetPaletteR Documentation

Determine colors to be used in a visualizatiom

Description

This function should not called directly, but instead be called via GetVectorOfColors instead. It remains an exported function because it is used in older versions of the Standard R pages

Usage

GetPalette(palette, template)

Arguments

palette

A string naming the palette to be used.

template

A list specifying color palettes and other visualization options.

Value

A palette which can be used as given.colors in ChartColors. So it can be either the name of a predefined palette (e.g. "Strong colors") or a vector of colors (e.g. from the template output)


Displayr/flipChartBasics documentation built on Feb. 26, 2024, 12:35 a.m.