powered by
Visualize a color palette as swatches of colors, possibly with labels printed on top
palette_plot(colors, label_size = 6, label_family = "", color_labels = TRUE, ...)
Vector of color names or hex codes.
Size of the color labels to be printed.
Font family of the labels
Individual bool or vector of bools indicating for which colors the color names should be printed on top of the color swatch.
Other parameters to be handed off to gg_color_swatches.
# NOT RUN { palette_plot(palette_OkabeIto) palette_plot(c("red", "green", "yellow", "magenta"), color_labels = FALSE) # }
Run the code above in your browser using DataLab