Palettes inspired by works at the Metropolitan Museum of Art in New York. All pieces selected come from various time periods, regions, and mediums. Let me know if you have any requests for a particular piece.
Structure of the package was based on coding from the PNWColors
and wesanderson
palettes.
For requests, questions, comments, concerns, or any thing else, feel free to reach out to me:
Twitter: here
LinkedIn: here
Email: brm2143@columbia.edu
Installation Palettes Functions Colorblind Checking
MetBrewer is now able to be downloaded directly through R. You can still download through GitHub as well.
install.packages("MetBrewer")
install.packages("devtools")
devtools::install_github("BlakeRMills/MetBrewer")
Install the package under the Python/
directory directly:
python setup.py install
or via pip:
pip install .
or place the file into your source directory.
Use it in your code:
```python
import met_palettes
colors = met_brew(name="VanGogh1", n=123, brew_type="continuous")
- Adoration of the Magi from Seven Scenes from the Life of Christ, 1390, Artists Unknown, Austrian, Link
- The Cup of Tea, 1880-1881, Mary Cassatt, American, Link
- Colorblind-Friendly
- Lilacs in a Window (Vase de Lilas a la Fenetre), 1880–83, Mary Cassatt, American, Link
- Colorblind-Friendly
- Cap Nègre, 1909, Henri-Edmond Cross, French, Link
- The Rehearsal of the Ballet Onstage, 1874, Edgar Degas, French, Link
- The Palace of Westminster, 1906–1907, André Derain, French, Link
- Colorblind-Friendly
- The King with Isis, Tomb of Haremhab, A.D. 1910–1911; original ca. 1323–1295 B.C., Twentieth Century; original New Kingdom, Link
- Colorblind-Friendly
- A Farm in Brittany, 1874, Paul Gauguin, French, Link
- Terracotta neck-amphora (jar), ca. 550–540 B.C., Greek, Link
- Colorblind-Friendly
- Sailing Boats Returning to Yabase, Lake Biwa, 1835, Utagawa Hiroshige, Japanese, Link
- Colorblind-Friendly
- Poem by Gon-Chūnagon Sadaie, from the series One Hundred Poems Explained by the Nurse (Hyakunin isshu uba ga etoki), 1760–1849, Katsushika Hokusai, Japanese, Link
- Lake Suwa in Shinano Province (Shinshū Suwako), from the series Thirty-six Views of Mount Fuji (Fugaku sanjūrokkei), 1830-32, Katsushika Hokusai, Japanese, Link
- Colorblind-Friendly
- Yōrō Waterfall in Mino Province (Mino no Yōrō no taki), from the series A Tour of Waterfalls in Various Provinces (Shokoku taki meguri), 1832, Katsushika Hokusai, Japanese, Link
- Colorblind-Friendly
- The Veteran in a New Field, 1865, Winslow Homer, American, Link
- Flower Garden and Bungalow, Bermuda, 1899, Winslow Homer, American, Link
- Joséphine-Éléonore-Marie-Pauline de Galard de Brassac de Béarn (1825–1860), Princesse de Broglie, 1851–53, Jean Auguste Dominique Ingres, French, Link
- Colorblind-Friendly
- Mihrab (Prayer Niche), dated A.H. 755/ A.D. 1354–55, From Iran, Isfahan, Link
- Colorblind-Friendly
- Garden Gathering, 1640–50, From Iran, Isfahan, Link
- Colorblind-Friendly
- The Entombment of Christ, 1702, Juan Rodríguez Juárez, Mexican, Link
- Mäda Primavesi (1903–2000), 1912-13, Gustav Klimt, Austrian, Link
- Dress, 1870, Lakota/Teton Sioux, Native American, Link
- Boating, 1874, Edouard Manet, French, Link
- Bridge over a Pond of Water Lilies, 1899, Claude Monet, French, Link
- Oedipus and the Sphinx, 1864, Gustave Moreau, French, Link
- Jungfrau, Mönch, and Eiger, 1851, Carl Morgenstern, German, Link
- Colorblind-Friendly
- Madame Bergeret de Frouville as Diana, 1756, Jean Marc Nattier, French, Link
- Serape, 1865–70, Navajo, Link
- Blue-Painted Ibex Amphora from Malqata, ca. 1390–1353 B.C., New Kingdom, Link
- "Laila and Majnun in School", Folio 129 from a Khamsa (Quintet) of Nizami of Ganja, A.H. 931/A.D. 1524–25, Nizami, Made in present-day Afghanistan, Herat, Link
- From the Faraway, Nearby, 1937, Georgia O'Keeffe, American, Link
- Colorblind-Friendly
- Red and Yellow Cliffs, 1940, Georgia O'Keeffe, American, Link
- Colorblind-Friendly
- Ear Ornament, Winged Runner, A.D. 400–700, Moche, Peruvian, Link
- Tunic with Confronting Catfish, A.D. 800–850, Nasca-Wari, Peruvian, Link
- A Shipwreck in a Storm, 1782, Jean Pillement, French, Link
- Colorblind-Friendly
- Washerwoman, Study, 1880, Camille Pissarro, French, Link
- Pandora, 1914, Odilon Redon, French, Link
- Nini in the Garden (Nini Lopez), 1876, Auguste Renoir, French, Link
- The Bathing Pool, Hubert Robert, French, Link
- Notre-Dame-de-la-Garde (La Bonne-Mère), Marseilles, 1905-06, Paul Signac, French, Link
- The Japanese Robe, 1872, Alfred Stevens, Belgian, Link
- Maharana Sarup Singh Inspects a Prize Stallion, 1845–46, Tara, Western India, Rajasthan, Mewar, Link
- Formes et couleurs: vingt planches en couleurs contenant soixante-sept motifs decoratifs, 1921, Auguste H. Thomas, French, Link
- The Glorification of the Barbaro Family, 1750, Giovanni Battista Tiepolo, Italian, Link
- The Declaration of Love, 1724, Jean François de Troy, French, Link
- Colorblind-Friendly
- Headdress frontlet, 1820–40, Tsimshian, Native American (Canadian), Link
- Cypresses, 1889, Vincent van Gogh, Dutch, Link
- Self-Portrait with a Straw Hat (obverse: The Potato Peeler), 1887, Vincent van Gogh, Dutch, Link
- First Steps, after Millet, 1890, Vincent van Gogh, Dutch, Link
- Colorblind-Friendly
- Mars and Venus United by Love, 1570s, Paolo Veronese, Italian, Link
- Colorblind-Friendly
- Portrait of a Woman, 1687, Willem Wissing, Dutch, Link
You can retrieve palettes using various methods listed below.
met.brewer(name="VanGogh1",n=7,type="discrete")
met.brewer("Manet", 5)
met.brewer("Morgenstern")
met.brewer("Troy",n=15,type="continuous")
met.brewer("Hokusai",n=100)
Here are also some ways you can incorporate this package into {ggplot2}
ggplot(data=iris, aes(x=Species, y=Petal.Length, fill=Species)) +
geom_violin() +
scale_fill_manual(values=met.brewer("Greek", 3))
ggplot(data=iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) +
geom_point(size=2) +
scale_color_manual(values=met.brewer("Renoir", 3))
ggplot(data=iris, aes(x=Species, y=Sepal.Width, color=Sepal.Width)) +
geom_point(size=3) +
scale_color_gradientn(colors=met.brewer("Isfahan1"))
library(urbnmapr)
countydata %>%
left_join(counties, by = "county_fips") %>%
filter(state_name =="Nebraska") %>%
ggplot(mapping=aes(long,lat,group = group, fill = horate)) +
geom_polygon(color="black",size=.25) +
scale_fill_gradientn(colors = met.brewer("Morgenstern")) +
coord_fixed() +
labs(fill="Homeownership rate") +
theme_void()
The package has been updated to check for colorblind-friendlyness You can list out the colorblind-friendly palettes with the following code
MetBrewer::colorblind_palettes
[1] "Cassatt1" "Cassatt2" "Derain" "Egypt" "Greek" "Hiroshige" "Hokusai2" "Hokusai3" "Ingres"
[10] "Isfahan1" "Isfahan2" "Morgenstern" "OKeeffe1" "OKeeffe2" "Pillement" "Troy" "VanGogh3" "Veronese"
You can also test is a palettes is colorblind friendly using the function provided
MetBrewer::colorblind.friendly("Ingres")