Package: met-brewer
MetBrewerPalettes inspired by works at the Metropolitan Museum of Art in New York. Pieces selected come from various time periods, regions, and mediums.Structure of the package was based on coding from thePNWColorsandwesandersonpackages. Inspired by the packageRColorBrewerfrom the work ofCynthia Brewer.For requests, questions, comments, concerns, or anything else, feel free to reach out to me:My Website:hereTwitter:hereLinkedIn:hereEmail:brm2143@columbia.eduTable of ContentsMetBrewerInstall PackageRPythonPalettesFunctionsggplot2 ExamplesColorblind Friendly CheckingInstall PackageInstall via PyPA:pip install met-breweror via pip directly from GitHub:pip install -e git+https://github.com/BlakeRMills/MetBrewer#subdirectory=PythonFor development, install the package under thePython/directory:python setup.py developor via pip locally:pip install -e .Use it in your code:importmet_brewercolors=met_brew(name="VanGogh1",n=123,brew_type="continuous")PalettesAll PalettesArchambaultWoman’s Dress and Accessories, 2005, Jodi Archambault, Hunkpapa Lakota (Teton Sioux),LinkColorblind-FriendlyAustriaAdoration of the Magi from Seven Scenes from the Life of Christ, 1390, Artists Unknown, Austrian,LinkBenedictusRelais, 1930 : quinze planches donnant quarante-deux motifs décoratifs : enluminure d'art de J. Saudé : préliminaires de Y. Rambosson, 1930, Edouard Bénedictus, French,LinkCassatt1The Cup of Tea, 1880-1881, Mary Cassatt, American,LinkColorblind-FriendlyCassatt2Lilacs in a Window (Vase de Lilas à la Fenetre), 1880–83, Mary Cassatt, American,LinkColorblind-FriendlyCrossCap Nègre, 1909, Henri-Edmond Cross, French,LinkDegasThe Rehearsal of the Ballet Onstage, 1874, Edgar Degas, French,LinkDemuthI Saw the Figure 5 in Gold, 1928, Charles Demuth, American,LinkColorblind-FriendlyDerainThe Palace of Westminster, 1906–1907, André Derain, French,LinkColorblind-FriendlyEgyptThe King with Isis, Tomb of Haremhab, A.D. 1910–1911; original ca. 1323–1295 B.C., Twentieth Century; original New Kingdom,LinkColorblind-FriendlyGauguinA Farm in Brittany, 1874, Paul Gauguin, French,LinkGreekTerracotta neck-amphora (jar), ca. 550–540 B.C., Greek,LinkColorblind-FriendlyHiroshigeSailing Boats Returning to Yabase, Lake Biwa, 1835, Utagawa Hiroshige, Japanese,LinkColorblind-FriendlyHokusai1Poem 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,LinkHokusai2Lake Suwa in Shinano Province (Shinshū Suwako), from the series Thirty-six Views of Mount Fuji (Fugaku sanjūrokkei), 1830-32, Katsushika Hokusai, Japanese,LinkColorblind-FriendlyHokusai3Yō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,LinkColorblind-FriendlyHomer1The Veteran in a New Field, 1865, Winslow Homer, American,LinkHomer2Flower Garden and Bungalow, Bermuda, 1899, Winslow Homer, American,LinkIngresJoséphine-Éléonore-Marie-Pauline de Galard de Brassac de Béarn (1825–1860), Princesse de Broglie, 1851–53, Jean Auguste Dominique Ingres, French,LinkColorblind-FriendlyIsfahan1Mihrab (Prayer Niche), dated A.H. 755/ A.D. 1354–55,  From Iran, Isfahan,LinkColorblind-FriendlyIsfahan2Garden Gathering, 1640–50, From Iran, Isfahan,LinkColorblind-FriendlyJavaSkirt, 20th Century, Javanese People, Javanese,LinkColorblind-FriendlyJohnsonJitterbugs V, 1941–42, William Henry Johnson, American,LinkColorblind-FriendlyJuarezThe Entombment of Christ, 1702, Juan Rodríguez Juárez, Mexican,LinkKandinskyKleine Welten IV (Small Worlds IV), 1922, Vasily Kandinsky, French, born Russia,LinkColorblind-FriendlyKlimtMäda Primavesi (1903–2000), 1912-13, Gustav Klimt, Austrian,LinkLakotaDress, 1870, Lakota/Teton Sioux, Native American,LinkManetBoating, 1874, Édouard Manet, French,LinkMonetBridge over a Pond of Water Lilies, 1899, Claude Monet, French,LinkMoreauOedipus and the Sphinx, 1864, Gustave Moreau, French,LinkMorgensternJungfrau, Mönch, and Eiger, 1851, Carl Morgenstern, German,LinkColorblind-FriendlyNattierMadame Bergeret de Frouville as Diana, 1756, Jean Marc Nattier, French,LinkNavajoSerape, 1865–70, Navajo,LinkNewKingdomBlue-Painted Ibex Amphora from Malqata, ca. 1390–1353 B.C., New Kingdom,LinkNizami"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,LinkOKeeffe1From the Faraway, Nearby, 1937, Georgia O'Keeffe, American,LinkColorblind-FriendlyOKeeffe2Red and Yellow Cliffs, 1940, Georgia O'Keeffe, American,LinkColorblind-FriendlyPaquinEvening Dress, 1937, House of Paquin by Ana de Pombo, French House, Spanish Designer,LinkPeru1Ear Ornament, Winged Runner, A.D. 400–700, Moche, Peruvian,LinkPeru2Tunic with Confronting Catfish, A.D. 800–850, Nasca-Wari, Peruvian,LinkPillementA Shipwreck in a Storm, 1782, Jean Pillement, French,LinkColorblind-FriendlyPissaroWasherwoman, Study, 1880, Camille Pissarro, French,LinkRedonPandora, 1914, Odilon Redon, French,LinkRenoirNini in the Garden (Nini Lopez), 1876, Auguste Renoir, French,LinkSignacNotre-Dame-de-la-Garde (La Bonne-Mère), Marseilles, 1905-06, Paul Signac, French,LinkTamDragon Robe, 1998, Vivienne Tam, American, born China,LinkColorblind-FriendlyTaraMaharana Sarup Singh Inspects a Prize Stallion, 1845–46, Tara, Western India, Rajasthan, Mewar,LinkThomasFormes et couleurs: vingt planches en couleurs contenant soixante-sept motifs decoratifs, 1921, Auguste H. Thomas, French,LinkTiepoloThe Glorification of the Barbaro Family, 1750, Giovanni Battista Tiepolo, Italian,LinkTroyThe Declaration of Love, 1724, Jean François de Troy, French,LinkColorblind-FriendlyTsimshianHeaddress frontlet, 1820–40, Tsimshian, Native American (Canadian),LinkVanGogh1Cypresses, 1889, Vincent van Gogh, Dutch,LinkVanGogh2Self-Portrait with a Straw Hat (obverse: The Potato Peeler), 1887, Vincent van Gogh, Dutch,LinkVanGogh3First Steps, after Millet, 1890, Vincent van Gogh, Dutch,LinkColorblind-FriendlyVeroneseMars and Venus United by Love, 1570s, Paolo Veronese, Italian,LinkColorblind-FriendlyWissingPortrait of a Woman, 1687, Willem Wissing, Dutch,LinkFunctionsYou can retrieve palettes using various methods listed below.met_brew(name="VanGogh1",n=7,brew_type="discrete")met_brew(name="Manet",n=5)met_brew("Morgenstern")met_brew("Troy",n=15,brew_type="continuous")met_brew("Hokusai1",n=100,brew_type="continuous")ggplot2 ExamplesHere are also some ways you can incorporate this package into {ggplot2}Colorblind Friendly CheckingThe package has been updated to check for colorblind-friendlyness
You can list out the colorblind-friendly palettes with the following codePythonforpalette_name,palette_dictinCOLORBLIND_PALETTES.items():print(palette_name)[1]Cassatt1,Cassatt2,Derain,Egypt,Greek,Hiroshige,Hokusai2,Hokusai3,Ingres[2]Isfahan1,Isfahan2,Morgenstern,OKeeffe1,OKeeffe2,Pillement,Troy,VanGogh3,VeroneseYou can also test if a palette is colorblind friendly using the function providedis_colorblind_friendly("Ingres")[1]True