Scale Plot Fills With Academic Themes (Discrete)
Source:R/ggplot2_fill_layer.R
scale_fill_academic_d.Rd
Scale Plot Fills With Academic Themes (Discrete)
Arguments
- palette_name
The name of a colour palette in
AcademicThemes
.- ...
Arguments passed to
ggplot2::discrete_scale()
.
Examples
library(ggplot2)
ggplot(
data.frame(
x = LETTERS[1:5],
y = 5:1
),
aes(x = x, y = y, fill = x)
) +
geom_col() +
scale_fill_academic_d("cruk") +
theme_classic() +
labs(
x = "X-Axis",
y = "Y-Axis",
fill = "Fill"
)