macos_colour_palettes: macOS Color Palettes

macos_light_palR Documentation

macOS Color Palettes

Description

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:

  • scale_colour_macos_light

  • scale_colour_macos_dark

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)


amirmasoudabdol/sfthemes documentation built on July 5, 2022, 5:36 p.m.