Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dracula/dRacula
š§š»āāļø Dark theme for R
https://github.com/dracula/dRacula
dark-theme dracula dracula-color-scheme dracula-theme ggplot2 ggplot2-themes r theme
Last synced: 28 days ago
JSON representation
š§š»āāļø Dark theme for R
- Host: GitHub
- URL: https://github.com/dracula/dRacula
- Owner: dracula
- License: other
- Created: 2021-11-28T00:24:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-03T13:26:35.000Z (3 months ago)
- Last Synced: 2024-11-08T22:55:51.081Z (about 1 month ago)
- Topics: dark-theme, dracula, dracula-color-scheme, dracula-theme, ggplot2, ggplot2-themes, r, theme
- Language: R
- Homepage: https://draculatheme.com/R
- Size: 2.66 MB
- Stars: 33
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - dracula/dRacula - š§š»āāļø Dark theme for R (R)
README
# {`dRacula`} \| Dracula Theme for R
[![R-CMD-check](https://github.com/dracula/dRacula/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/dracula/dRacula/actions/workflows/R-CMD-check.yaml)
> All things Dracula themed for R
## Install
All instructions can be found at
[draculatheme.com/R](https://draculatheme.com/R).``` r
devtools::install_github("dracula/dRacula")
```or
``` r
remotes::install_github("dracula/dRacula")
```## Examples
``` r
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()
```![](README_files/figure-commonmark/rnorm-hex-example-1.png)
``` r
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")
```![](README_files/figure-commonmark/mpg-lm-example-1.png)
## Team
This theme is maintained by the following person(s) and a bunch of
[awesome
contributors](https://github.com/dracula/dRacula/graphs/contributors).| [![Jordan Bradford](https://github.com/jrdnbradford.png?size=100)](https://github.com/jrdnbradford) |
|----|
| [Jordan Bradford](https://github.com/jrdnbradford) |## Community
- [X](https://x.com/draculatheme) - Best for getting updates about
themes and new stuff.
- [GitHub](https://github.com/dracula/dracula-theme/discussions) - Best
for asking questions and discussing issues.
- [Discord](https://draculatheme.com/discord-invite) - Best for hanging
out with the community.## Contributing
See [`CONTRIBUTING.md`](./.github/CONTRIBUTING.md).
## Acknowledgments
Iām indebted to the {[viridis](https://sjmgarnier.github.io/viridis)}
and {[wesanderson](https://github.com/karthik/wesanderson)} `R` packages
for inspiration and several plot examples.## License
[MIT License](./LICENSE)