scale_fill_discrete_af {afcharts} | R Documentation |
Discrete colour fill scales for Analysis Function plots
Description
Discrete colour fill scales for Analysis Function plots
Usage
scale_fill_discrete_af(
palette = "main",
palette_type = c("af"),
reverse = FALSE,
...
)
Arguments
palette |
Name of palette to use; e.g. "main", "sequential", "focus." Default value is "main." |
palette_type |
Currently only the Analysis Function palettes are supported. Defaults to "af". |
reverse |
Boolean value to indicate whether the palette should be reversed. |
... |
Additional arguments passed to scale type. |
Value
ggplot2 discrete fill scale
Examples
library(ggplot2)
d <- subset(mpg, manufacturer == "ford")
ggplot(d, aes(x = class, fill = class)) +
geom_bar() +
scale_fill_discrete_af()
[Package afcharts version 0.4.0 Index]