MetBrewer is an R package that provides color palettes inspired by artworks and collections in the Metropolitan Museum of Art (The Met). The idea is to draw on the rich visual heritage of fine art to generate palettes that are aesthetically pleasing and grounded in real-world artistic color usage. The palettes are curated, named after artworks or styles, and often include notes about colorblind-friendliness and contrast. The package supports both discrete and continuous palette types, with interpolation when more colors are requested than originally defined. It also provides ggplot2-friendly scale functions (scale_color_met_c, scale_fill_met_d, etc.) so integration into typical R plotting workflows is smooth. Internally, the package includes functions to list available palettes, check which are colorblind-friendly, and visualize all palettes at once.
Features
- A curated library of palettes inspired by works in the Metropolitan Museum
- Support for discrete and continuous palettes with automatic interpolation
- Functions to check colorblind-friendliness of palettes
- ggplot2 scales (color/fill) for seamless plotting integration
- Palette listing and visualization utilities (display.all.met)
- Open license (CC0) and community contributions for palette expansion