# Get a palette by name
colors <- doypa("buzz")
print(colors)
# Get a random palette
colors <- doypa()
print(colors)
# Get a palette with a specific number of colors
colors <- doypa("google", n = 3)
print(colors)
# Reverse the order of the palette
colors <- doypa("buzz", reverse = TRUE)
print(colors)
# Interpolate colors as a gradient
colors <- doypa("buzz", n = 10, gradient = TRUE)
print(colors)
Run the code above in your browser using DataLab