macos_light_pal | R Documentation |
Set of color palettes based on macOS System Colors. General information about each palette can be found in the colors vignette.
macos_light_pal(order = "contrast", accessible = FALSE, vibrant = FALSE) macos_dark_pal(order = "contrast", accessible = FALSE, vibrant = FALSE)
order |
Indicates the order of colors in the palette |
accessible |
Returns accessible alternative of colors |
vibrant |
Returns vibrant alternative of colors |
These functions are ideal for accessing the raw color values, and can be used
within functions where raw color values are needed, e.g., plot.
In order to use them with ggplot
functions, you must utilize one of the
followings:
scale_colour_macos_light
scale_colour_macos_dark
library(scales) scales::show_col( macos_light_pal(order = "default", accessible = FALSE)(11), borders = NA, labels = FALSE) scales::show_col( macos_light_pal(order = "default", accessible = FALSE, vibrant = TRUE)(11), borders = NA, labels = FALSE) scales::show_col( macos_light_pal(order = "default", accessible = TRUE)(11), borders = NA, labels = FALSE) scales::show_col( macos_light_pal(order = "default", accessible = TRUE, vibrant = TRUE)(11), borders = NA, labels = FALSE) scales::show_col( macos_light_pal(order = "contrast", accessible = FALSE)(11), borders = NA, labels = FALSE) scales::show_col( macos_light_pal(order = "contrast", accessible = FALSE, vibrant = TRUE)(11), borders = NA, labels = FALSE) scales::show_col( macos_light_pal(order = "contrast", accessible = TRUE)(11), borders = NA, labels = FALSE) scales::show_col( macos_light_pal(order = "contrast", accessible = TRUE, vibrant = TRUE)(11), borders = NA, labels = FALSE) library(scales) scales::show_col( macos_dark_pal(order = "default", accessible = FALSE)(11), borders = NA, labels = FALSE) scales::show_col( macos_dark_pal(order = "default", accessible = FALSE, vibrant = TRUE)(11), borders = NA, labels = FALSE) scales::show_col( macos_dark_pal(order = "default", accessible = TRUE)(11), borders = NA, labels = FALSE) scales::show_col( macos_dark_pal(order = "default", accessible = TRUE, vibrant = TRUE)(11), borders = NA, labels = FALSE) scales::show_col( macos_dark_pal(order = "contrast", accessible = FALSE)(11), borders = NA, labels = FALSE) scales::show_col( macos_dark_pal(order = "contrast", accessible = FALSE, vibrant = TRUE)(11), borders = NA, labels = FALSE) scales::show_col( macos_dark_pal(order = "contrast", accessible = TRUE)(11), borders = NA, labels = FALSE) scales::show_col( macos_dark_pal(order = "contrast", accessible = TRUE, vibrant = TRUE)(11), borders = NA, labels = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.