R: Material Design Color Palettes

scale_color_material {ggsci} | R Documentation

## Material Design Color Palettes

### Description

See `pal_material` for details.

### Usage

    scale_color_material(palette = c("red", "pink", "purple", "deep-purple",
      "indigo", "blue", "light-blue", "cyan", "teal", "green", "light-green",
      "lime", "yellow", "amber", "orange", "deep-orange", "brown", "grey",
      "blue-grey"), alpha = 1, reverse = FALSE, ...)

    scale_colour_material(palette = c("red", "pink", "purple", "deep-purple",
      "indigo", "blue", "light-blue", "cyan", "teal", "green", "light-green",
      "lime", "yellow", "amber", "orange", "deep-orange", "brown", "grey",
      "blue-grey"), alpha = 1, reverse = FALSE, ...)

    scale_fill_material(palette = c("red", "pink", "purple", "deep-purple",
      "indigo", "blue", "light-blue", "cyan", "teal", "green", "light-green",
      "lime", "yellow", "amber", "orange", "deep-orange", "brown", "grey",
      "blue-grey"), alpha = 1, reverse = FALSE, ...)

### Arguments

`palette` | Palette type. There are 19 available options: `"red"` `"pink"` `"purple"` `"deep-purple"` `"indigo"` `"blue"` `"light-blue"` `"cyan"` `"teal"` `"green"` `"light-green"` `"lime"` `"yellow"` `"amber"` `"orange"`, `"deep-orange"` `"brown"` `"grey"` `"blue-grey"` See the material design color guidelines for details.
`alpha` | Transparency level, a real number in (0, 1]. See `alpha` in `rgb` for details.
`reverse` | Logical. Should the order of the colors be reversed?
`...` | additional parameters for `discrete_scale`

### Author(s)

Nan Xiao <me@nanx.me> | <https://nanx.me>

### Examples

    library("ggplot2")
    library("reshape2")
    data("mtcars")

    cor = abs(cor(mtcars))
    cor_melt = melt(cor)

    ggplot(cor_melt,
           aes(x = Var1, y = Var2, fill = value)) +
      geom_tile(colour = "black", size = 0.3) +
      theme_bw() + scale_fill_material("blue-grey")

[Package ggsci version 2.9 Index]