The original package has not been in active development for >= 2 years,
and since then some things have changed. This fork aims to bring the
themes up to speed with regard to missing features, like setting
fonts/colors for the subtitle
ggplot2 elements missing in the original
package.
- Make all themes work with ggplot2 features currently missing (subtitle, caption). See #1
- Convert manual palettes (
pal()
) to properscale_[color|fill]_palette
functions. The idea is to be consistent with theme packages likehrbthemes
(<3)
You can install the development version of artyfarty from with:
remotes::install_github("tadaadata/artyfarty")
library(ggplot2)
library(artyfarty)
# List exported themes
exports <- getNamespaceExports("artyfarty")
themes <- exports[grepl(pattern = "^theme_", exports)]
p <- ggplot(data = mtcars, aes(x = hp, y = mpg, color = cyl)) +
geom_point() +
labs(subtitle = "Plot subtitle",
caption = "Caption",
x = "X axis text", y = "Y axis text")
for (theme in sort(themes)) {
p <- p + labs(title = theme) + eval(parse(text = theme))()
print(p)
}
Please note that the [34m’artyfarty’[39m project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
artyfarty
is a collection of ggplot themes published by
dataroots.
For more info, please check out the examples and documentation here.
An introductory vignette can be found here