pbi_pal: Microsoft PowerBI palettes

Description Usage Arguments Value Author(s) Examples

View source: R/pbi_pal.R

Description

Creates nice looking color palettes from Microsoft PowerBI

pbi_pal makes the color palettes from Microsoft PowerBI available as R palettes. Names of 19 palettes are as follows:

  1. classic

  2. default

  3. city park

  4. classroom

  5. colorblind safe

  6. electric

  7. high contrast

  8. sunset

  9. twilight

  10. highrise

  11. executive

  12. frontier

  13. innovate

  14. bloom

  15. tidal

  16. temperature

  17. solar

  18. divergent

  19. storm

Usage

1
pbi_pal(palette = "classic", direction = 1)

Arguments

palette

A palette name from names(pbi_palettes), defaults to default palette

direction

Sets the order of colours in the scale. If -1, the order of colours is reversed. Defaults to 1

Value

A function with paramater n, number of colors required from the palette name palette

Author(s)

Keyur Shah

Examples

1
pbi_pal("default", direction = 1)(10)

keyurbipinshah/ggpowerbi documentation built on May 5, 2020, 9:23 p.m.