scale_color_islamic: Setup color palette for ggplot2

Description Usage Arguments Examples

Description

Setup color palette for ggplot2

Usage

1
2
3
4
5
scale_color_islamic(..., palette = "samarqand", discrete = TRUE,
  alpha = 1, reverse = FALSE)

scale_colour_islamic(..., palette = "samarqand", discrete = TRUE,
  alpha = 1, reverse = FALSE)

Arguments

...

Additional arguments to pass to scale_color_gradientn.

palette

Choose from islamic_palettes list.

discrete

Whether to use a discrete color palette.

alpha

Transparency.

reverse

Logical, whether to reverse the order of the colors.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(ggplot2)
ggplot(mtcars, aes(mpg, wt)) +
  geom_point(aes(colour = factor(cyl))) +
  scale_colour_islamic(palette="ottoman")
ggplot(mtcars, aes(mpg, wt)) +
  geom_point(aes(colour = hp)) +
  scale_colour_islamic(palette="shiraz", discrete = FALSE)
ggplot(data = mpg) +
  geom_point(mapping = aes(x = displ, y = hwy, color = class)) +
  scale_colour_islamic(palette="jerusalem")
ggplot(diamonds) + geom_bar(aes(x = cut, fill = clarity)) +
  scale_fill_islamic()

lambdamoses/IslamicArt documentation built on May 23, 2019, 8:04 p.m.