Home

Awesome

<!-- README.md is rendered from README.qmd. Edit README.qmd and render to update README.md -->

{dRacula} | Dracula Theme for R <a href="https://draculatheme.com/"><img src="man/figures/logo.svg" align="right" height="139" alt="Dracula logo in an R hex sticker"/></a>

R-CMD-check

All things Dracula themed for R

Install

All instructions can be found at draculatheme.com/R.

devtools::install_github("dracula/dRacula")

or

remotes::install_github("dracula/dRacula")

Examples

library(dplyr)
library(ggplot2)
library(dRacula)

set.seed(1)
ggplot(data.frame(x = rnorm(10000), y = rnorm(10000)), aes(x = x, y = y)) +
  geom_hex() + coord_fixed() +
  ggtitle("RNORM Hex") +
  scale_fill_dracula(discrete = FALSE) + theme_dracula()

library(dplyr)
library(ggplot2)
library(dRacula)

lm <- lm(mpg ~ wt, data = mtcars)

ggplot(mtcars %>% mutate(resid = abs(resid(lm)), fitted = fitted(lm))) +
  geom_line(aes(wt, fitted)) +
  geom_point(aes(wt, mpg, color = resid)) +
  scale_color_dracula(discrete = FALSE) +
  theme_dracula() +
  ggtitle("mtcars: MPG by Weight") +
  labs(x = "Weight", y = "MPG", color = "Residuals")

Team

This theme is maintained by the following person(s) and a bunch of awesome contributors.

Jordan Bradford
Jordan Bradford

Community

Contributing

See CONTRIBUTING.md.

Acknowledgments

I’m indebted to the {viridis} and {wesanderson} R packages for inspiration and several plot examples.

License

MIT License