scale_malco: mbmisc ggplot scales

Description Usage Arguments Value Examples

View source: R/scales.R

Description

These functions use the colors in palette_malco() to work easily with ggplot2 and ggraph.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
scale_malco(aesthetics, order = 1:7, alpha = NULL, ...)

scale_colour_malco(order = 1:7, alpha = NULL, ...)

scale_color_malco(order = 1:7, alpha = NULL, ...)

scale_fill_malco(order = 1:7, alpha = NULL, ...)

scale_edge_colour_malco(order = 1:7, alpha = NULL, ...)

scale_edge_color_malco(order = 1:7, alpha = NULL, ...)

scale_edge_fill_malco(order = 1:7, alpha = NULL, ...)

Arguments

aesthetics

What type of aesthetic?

order

What's the order of the palette?

alpha

A numeric vector

...

Passed to ggplot2::discrete_scale

Value

a ggplot scale

Examples

1
2
3
4
5
library(ggplot2)

ggplot(mtcars, aes(mpg, hp, col = factor(am))) +
  geom_point() +
  scale_color_malco()

malcolmbarrett/mbmisc documentation built on May 17, 2019, 8:16 a.m.