google_colors_load: Load Google colors

Description Usage Arguments Value Examples

View source: R/google_colors.R

Description

Load Google colors

Usage

1
2
  google_colors_load(url = "https://raw.githubusercontent.com/joelgsponer/waRRior/master/google/colors/waRRior.google.colors.json",
  verbose = T)

Arguments

url

the url to the JSON file where the colors are stored

verbose

toggle verbose printing.

Value

Returns a list with the "google" colors

Examples

1
2
3
g <- google_colors_load()
print(g$BlueGrey$palette)
barplot(seq(1,length(g$BlueGrey$palette)), col = g$BlueGrey$palette)

joelgsponer/waRRior2 documentation built on Feb. 22, 2020, 3:34 a.m.