Skip to contents

Function for using MexBrewer colors schemes in ggplot2. Use scale_color_mex_d and scale_fill_mex_d for discrete scales and scale_color_mex_c and scale_fill_mex_c for continuous scales.

Usage

scale_color_mex_c(palette_name, direction = 1, ...)

Arguments

palette_name

Name of Palette. Choices are: Alacena, Atentado, Aurora, Casita1, Casita2, Casita3, Concha, Frida, Huida, Maiz, Naturaleza,Ofrenda, Revolucion, Ronda, Taurus1, Taurus2,Tierra, Vendedora.

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_mex_c("Tierra", direction=-1)