Title: | Color Palettes Based on the Works of Sanzo Wada |
---|---|
Description: | Inspired by the art and color research of Sanzo Wada (1883-1967), his "Dictionary Of Color Combinations" (2011, ISBN:978-4861522475), and the interactive site by Dain M. Blodorn Kim <https://github.com/dblodorn/sanzo-wada>, this package brings Wada's color combinations to R for easy use in data visualizations. This package honors 60 of Wada's color combinations: 20 duos, 20 trios, and 20 quads. |
Authors: | Jacqueline Maasch [aut, cre] |
Maintainer: | Jacqueline Maasch <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0 |
Built: | 2025-02-15 03:08:58 UTC |
Source: | https://github.com/jmaasch/sanzo |
List containing all 20 duo palettes, defined by hexadecimal values.
duos
duos
An object of class list
of length 20.
List containing all 20 quad palettes, defined by hexadecimal values.
quads
quads
An object of class list
of length 20.
Print demo base R plots for all 60 sanzo palettes to illustrate their use and display hexadecimal values.
sanzo.demo.all()
sanzo.demo.all()
sanzo.demo.all()
sanzo.demo.all()
Print demo base R plots for all 20 duo palettes to illustrate their use and display hexadecimal values.
sanzo.demo2()
sanzo.demo2()
sanzo.demo2()
sanzo.demo2()
Print demo base R plots for all 20 trio palettes to illustrate their use and display hexadecimal values.
sanzo.demo3()
sanzo.demo3()
sanzo.demo3()
sanzo.demo3()
Print demo base R plots for all 20 quad palettes to illustrate their use and display hexadecimal values.
sanzo.demo4()
sanzo.demo4()
sanzo.demo4()
sanzo.demo4()
Generate two-colored palettes.
sanzo.duo(palette_name)
sanzo.duo(palette_name)
palette_name |
The short ID for the palette, e.g. "c006". For full list of duo IDs, use sanzo.info2(). |
A vector of hexademicals of length 2.
# Assign palette to a name. my_palette <- sanzo.duo("c229") # Concatenate two duos for a custom quad. c033 <- sanzo.duo("c033") c095 <- sanzo.duo("c095") custom_quad <- c(c033, c095) # Use with base R. plot(iris$Sepal.Width, iris$Sepal.Length, col = sanzo.duo("c085")) # For examples of use with ggplot2, see https://github.com/jmaasch/sanzo. # For examples of use as a gradient, see https://github.com/jmaasch/sanzo.
# Assign palette to a name. my_palette <- sanzo.duo("c229") # Concatenate two duos for a custom quad. c033 <- sanzo.duo("c033") c095 <- sanzo.duo("c095") custom_quad <- c(c033, c095) # Use with base R. plot(iris$Sepal.Width, iris$Sepal.Length, col = sanzo.duo("c085")) # For examples of use with ggplot2, see https://github.com/jmaasch/sanzo. # For examples of use as a gradient, see https://github.com/jmaasch/sanzo.
Create data frame containing long-form names, short-form IDs, hexadecimal values, and links to Dain M. Blodorn Kim's https://sanzo-wada.dmbk.io for all sanzo palettes.
sanzo.info.all()
sanzo.info.all()
Return data frame containing long-form names, short-form IDs, hex values, and URLs for all sanzo palettes.
info_df <- sanzo.info.all() print(sanzo.info.all())
info_df <- sanzo.info.all() print(sanzo.info.all())
Create data frame containing long-form names, short-form IDs, hexadecimal values, and links to Dain M. Blodorn Kim's https://sanzo-wada.dmbk.io for all duo palettes.
sanzo.info2()
sanzo.info2()
Return data frame containing long-form names, short-form IDs, hex values, and URLs for all duos.
duo_info_df <- sanzo.info2() print(sanzo.info2())
duo_info_df <- sanzo.info2() print(sanzo.info2())
Create data frame containing long-form names, short-form IDs, hexadecimal values, and links to Dain M. Blodorn Kim's https://sanzo-wada.dmbk.io for all trio palettes.
sanzo.info3()
sanzo.info3()
Return data frame containing long-form names, short-form IDs, hex values, and URLs for all trios.
trio_info_df <- sanzo.info3() print(sanzo.info3())
trio_info_df <- sanzo.info3() print(sanzo.info3())
Create data frame containing long-form names, short-form IDs, hexadecimal values, and links to Dain M. Blodorn Kim's https://sanzo-wada.dmbk.io for all quad palettes.
sanzo.info4()
sanzo.info4()
Return data frame containing long-form names, short-form IDs, hex values, and URLs for all quads
quad_info_df <- sanzo.info4() print(sanzo.info4())
quad_info_df <- sanzo.info4() print(sanzo.info4())
Generate four-colored palettes.
sanzo.quad(palette_name)
sanzo.quad(palette_name)
palette_name |
The short ID for the palette, e.g. "c263". For full list of quad IDs, use sanzo.info4(). |
A vector of hexademicals of length 3.
# Assign palette to a name. my_palette <- sanzo.quad("c252") # Concatenate two quads for a custom eight-colored palette. c348 <- sanzo.quad("c348") c341 <- sanzo.quad("c341") custom_eight <- c(c348, c341) # Use with base R. plot(iris$Sepal.Width, iris$Sepal.Length, col = sanzo.quad("c341")) # For examples of use with ggplot2, see https://github.com/jmaasch/sanzo. # For examples of use as a gradient, see https://github.com/jmaasch/sanzo.
# Assign palette to a name. my_palette <- sanzo.quad("c252") # Concatenate two quads for a custom eight-colored palette. c348 <- sanzo.quad("c348") c341 <- sanzo.quad("c341") custom_eight <- c(c348, c341) # Use with base R. plot(iris$Sepal.Width, iris$Sepal.Length, col = sanzo.quad("c341")) # For examples of use with ggplot2, see https://github.com/jmaasch/sanzo. # For examples of use as a gradient, see https://github.com/jmaasch/sanzo.
Generate three-colored palettes.
sanzo.trio(palette_name)
sanzo.trio(palette_name)
palette_name |
The short ID for the palette, e.g. "c121". For full list of trio IDs, use sanzo.info3(). |
A vector of hexademicals of length 3.
# Assign palette to a name. my_palette <- sanzo.trio("c223") # Concatenate two trios for a custom six-colored palette. c207 <- sanzo.trio("c207") c226 <- sanzo.trio("c226") custom_six <- c(c207, c226) # Use with base R. plot(iris$Sepal.Width, iris$Sepal.Length, col = sanzo.trio("c343")) # For examples of use with ggplot2, see https://github.com/jmaasch/sanzo. # For examples of use as a gradient, see https://github.com/jmaasch/sanzo.
# Assign palette to a name. my_palette <- sanzo.trio("c223") # Concatenate two trios for a custom six-colored palette. c207 <- sanzo.trio("c207") c226 <- sanzo.trio("c226") custom_six <- c(c207, c226) # Use with base R. plot(iris$Sepal.Width, iris$Sepal.Length, col = sanzo.trio("c343")) # For examples of use with ggplot2, see https://github.com/jmaasch/sanzo. # For examples of use as a gradient, see https://github.com/jmaasch/sanzo.
List containing all 20 trio palettes, defined by hexadecimal values.
trios
trios
An object of class list
of length 20.