All things Dracula themed for R
All instructions can be found at draculatheme.com/R.
devtools::install_github("dracula/dRacula")
or
remotes::install_github("dracula/dRacula")
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")
This theme is maintained by the following person(s) and a bunch of awesome contributors.
![]() |
---|
Jordan Bradford |
- X - Best for getting updates about themes and new stuff.
- GitHub - Best for asking questions and discussing issues.
- Discord - Best for hanging out with the community.
See CONTRIBUTING.md
.
Iām indebted to the {viridis}
and {wesanderson} R
packages
for inspiration and several plot examples.