View source: R/ggplot2_fill_layer.R
scale_fill_academic_c | R Documentation |
Scale Plot Fills With Academic Themes (Continuous)
scale_fill_academic_c(palette_name, ...)
palette_name |
The name of a colour palette in |
... |
Arguments passed to |
A layer that can be added to a ggplot2 object.
library(ggplot2)
ggplot(
data.frame(
x = rnorm(10000),
y = rnorm(10000)
),
aes(x = x, y = y)
) +
geom_hex() +
scale_fill_academic_c("cruk") +
theme_classic() +
labs(
x = "X-Axis",
y = "Y-Axis",
fill = "Fill"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.