scale_ld: Locke Data color scale

Description Arguments Examples

View source: R/scales.r

Description

This is a qualitative scale with three different colours.

Arguments

...

common discrete scale parameters: 'name', 'breaks', 'labels', 'na.value', 'limits', 'guide', and 'aesthetics'. See [discrete_scale] for more details.

alpha

Alpha transparency level of the color. Default is no transparency.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
library("ggplot2")
ggplot(mtcars, aes(factor(cyl), fill = factor(vs))) +
geom_bar() +
theme_ld() +
scale_fill_ld()

## End(Not run)
## Not run: 
library(ggplot2)
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
  geom_point() +
  theme_ld() +
   scale_color_ld()
   
## End(Not run)

lockedata/lockeutils documentation built on May 23, 2019, 6:04 p.m.