scale_color_met_c: MetBrewer palettes for plotting with ggplot2

View source: R/PaletteCode.R

scale_color_met_cR Documentation

MetBrewer palettes for plotting with ggplot2

Description

Function for using MetBrewer colors schemes in ggplot2. Use scale_color_met_d and scale_fill_met_d for discrete scales and scale_color_met_c and scale_fill_met_c for continuous scales.

Usage

scale_color_met_c(name, direction = 1, ...)

Arguments

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

direction

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

...

Other arguments passed on to scale_color_gradientn

Examples

library(ggplot2)
ggplot(data=iris, aes(x=Sepal.Length, y=Sepal.Width, color=Sepal.Length)) +
geom_point() +
scale_color_met_c("Isfahan1", direction=-1)

MetBrewer documentation built on March 21, 2022, 5:07 p.m.