palette_playax: A palette with a set of predefined colors

Description Usage Arguments Details

View source: R/palette_playax.R

Description

'palette_playax_XX' exposes a set of predefined colors which are either _assigned_ to existing streaming services (which can be checked with 'palette_playax_services') or are otherwise _unassigned_ and can be reused for other purposes.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Arguments

extension

a character vector with extra service names.

Details

These colors should be used in time series, histograms, and any plots where their corresponding streaming service arises, and completed with the unassigned colors if there is a need to present extra information (e.g. data from other services).

See scale_color_playax on how to access the Playax palette from 'ggplot2'.

'palette_playax()'

Returns a named character vector where each name corresponds to a streaming service (e.g. 'spotify') and each value corresponds to an RGB color string.

'palette_playax_unassigned()'

Returns an unnamed character vector containing RGB color strings which are not assigned to any service.

'palete_playax_all()'

Returns a character vector with all of the colors in the palette, assigned or otherwise. Clients may optionally specify custom assignment names for the colors.

'palette_playax_extended()'

Returns a named character vector with all of the colors in 'palette_playax_assigned()', plus a set of unassigned colors picked from the palette and bound to the names passed in the 'extension' parameter.

'palette_playax_services()'

Returns a character vector with the set of streaming services supported by the palette.

'palette_playax_select()'

Returns colors assigned to specific services. Shortcut for 'palette_playax()[services].'


gmega/playaxr documentation built on Dec. 20, 2020, 6:22 a.m.