Skip to contents

Set of color palettes based on macOS System Colors. General information about each palette can be found in the colors vignette.

Usage

macos_light_pal(order = "contrast", accessible = FALSE, vibrant = FALSE)

macos_dark_pal(order = "contrast", accessible = FALSE, vibrant = FALSE)

Arguments

order

Indicates the order of colors in the palette

accessible

Returns accessible alternative of colors

vibrant

Returns vibrant alternative of colors

Details

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:

Examples

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)