test.plots.met: View Sample Visualization for Palettes

View source: R/PaletteCode.R

test.plots.metR Documentation

View Sample Visualization for Palettes

Description

Creates four sample visualizations for testing how a palette looks.

Usage

test.plots.met(palette_name, n, direction = 1, override_order = FALSE)

Arguments

palette_name

Name of Palette. Choices are: Archambault, Austria, Benedictus, Cassatt1, Cassatt2, Cross, Degas, Demuth, Derain, Egypt, Gauguin, Greek, Hiroshige, Hokusai1, Hokusai2, Hokusai3, Homer1, Homer2, Ingres, Isfahan1, Isfahan2, Java, Johnson,Juarez, Kandinsky, Klimt, Lakota, Manet, Monet, Moreau, Morgenstern, Nattier, Navajo, NewKingdom, Nizami, OKeeffe1, OKeeffe2, Paquin, Peru1, Peru2, Pillement, Pissaro, Redon, Renoir, Signac, Tam, Tara, Thomas, Tiepolo, Troy, Tsimshian, VanGogh1, VanGogh2, VanGogh3, Veronese, and Wissing

n

Number of desired colors. If number of requested colors is beyond the scope of the palette, colors are automatically interpolated. If n is not provided, the length of the palette is used.

direction

Sets order of colors. Default palette is 1. If direction is -1, palette color order is reversed

override_order

Colors are picked from palette to maximize readability and aesthetics. This means that colors are not always selected in sequential order from the full palette. If override_order is set to TRUE, colors are selected in sequential order from the full palette instead. Default is FALSE.


BlakeRMills/MetBrewer documentation built on Jan. 6, 2025, 9:29 p.m.