{"id":13712513,"url":"https://github.com/dracula/dRacula","last_synced_at":"2025-05-06T22:31:15.673Z","repository":{"id":40554333,"uuid":"432584464","full_name":"dracula/dRacula","owner":"dracula","description":"🧛🏻‍♂️ Dark theme for R","archived":false,"fork":false,"pushed_at":"2025-03-06T19:05:19.000Z","size":3731,"stargazers_count":35,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T16:20:23.094Z","etag":null,"topics":["dark-theme","dracula","dracula-color-scheme","dracula-theme","ggplot2","ggplot2-themes","r","theme"],"latest_commit_sha":null,"homepage":"https://draculatheme.com/R","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dracula.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-28T00:24:17.000Z","updated_at":"2025-04-04T04:02:15.000Z","dependencies_parsed_at":"2023-12-30T17:23:57.998Z","dependency_job_id":"c33ef163-0be8-4889-ba17-6e3c2d1f4801","html_url":"https://github.com/dracula/dRacula","commit_stats":null,"previous_names":["dracula/dracula","dracula/ggplot2"],"tags_count":1,"template":false,"template_full_name":"dracula/template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dracula%2FdRacula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dracula%2FdRacula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dracula%2FdRacula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dracula%2FdRacula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dracula","download_url":"https://codeload.github.com/dracula/dRacula/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252779010,"owners_count":21802865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dark-theme","dracula","dracula-color-scheme","dracula-theme","ggplot2","ggplot2-themes","r","theme"],"created_at":"2024-08-02T23:01:19.336Z","updated_at":"2025-05-06T22:31:15.643Z","avatar_url":"https://github.com/dracula.png","language":"R","funding_links":[],"categories":["Themes and aesthetics","R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{R options, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README/\",\n  fig.retina = 2,\n  fig.width = 5,\n  fig.height = 4\n)\n```\n\n\u003c!-- README.md is rendered from README.qmd. Edit README.qmd and render to update README.md --\u003e\n\n# {`dRacula`} | Dracula Theme for R \u003ca href=\"https://draculatheme.com/\"\u003e\u003cimg src=\"man/figures/logo.svg\" align=\"right\" height=\"139\" alt=\"Dracula logo in an R hex sticker\"/\u003e\u003c/a\u003e\n\n[![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)\n\n\u003e All things Dracula themed for R\n\n## Install\n\nAll instructions can be found at [draculatheme.com/R](https://draculatheme.com/R).\n```{R devtools-install, echo=TRUE, eval=FALSE, output=FALSE}\ndevtools::install_github(\"dracula/dRacula\")\n```\nor\n```{R remotes-install, echo=TRUE, eval=FALSE, output=FALSE}\nremotes::install_github(\"dracula/dRacula\")\n```\n\n## Examples\nAdd a Dracula-themed `_brand.yaml` to your project:\n```{R brand, output=TRUE, message=FALSE}\nlibrary(dRacula)\ndracula_brand()\n```\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"./man/figures/brand.png\" alt=\"Dracula-branded Shiny App\" width=\"500\" height=\"600\"\u003e\u003c/p\u003e\n\nApply the Dracula theme and color scale to a linear regression plot:\n```{R mpg-lm-example, output=TRUE, eval=TRUE, message=FALSE, warning=FALSE, fig.align='center'}\nlibrary(dplyr)\nlibrary(ggplot2)\nlibrary(dRacula)\n\nlm \u003c- lm(mpg ~ wt, data = mtcars)\n\nggplot(mtcars %\u003e% mutate(resid = abs(resid(lm)), fitted = fitted(lm))) +\n  geom_line(aes(wt, fitted)) +\n  geom_point(aes(wt, mpg, color = resid)) +\n  scale_color_dracula(discrete = FALSE) +\n  theme_dracula() +\n  ggtitle(\"mtcars: MPG by Weight\") +\n  labs(x = \"Weight\", y = \"MPG\", color = \"Residuals\")\n```\n\n\nApply the Dracula palette and theme to proportional stacked area chart:\n```{R proportion, fig.align='center'}\nlibrary(dplyr)\nlibrary(ggplot2)\nlibrary(dRacula)\n\nset.seed(1)\ntime \u003c- rep(seq(1, 7), each = 5)\nvalue \u003c- runif(35, 10, 100)\ngroup \u003c- rep(LETTERS[1:5], times = 7)\n\ndata \u003c- data.frame(time, value, group) %\u003e%\n  group_by(time, group) %\u003e%\n  summarise(n = sum(value), .groups = \"drop\") %\u003e%\n  mutate(percentage = n / sum(n))\n\nggplot(data, aes(x = time, y = percentage, fill = group)) +\n  geom_area(alpha = 0.7, color = \"black\", linewidth = 0.4) +\n  scale_fill_dracula(discrete = TRUE) +\n  labs(\n    title = \"Proportional Stacked Area Chart\",\n    x = \"Time\",\n    y = \"Proportion\",\n    fill = \"Group\"\n  ) +\n  theme_dracula() +\n  theme(legend.position = \"bottom\")\n```\n\n## Team\n\nThis theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/dRacula/graphs/contributors).\n\n| [![Jordan Bradford](https://github.com/jrdnbradford.png?size=100)](https://github.com/jrdnbradford) |\n| --------------------------------------------------------------------------------------------------- |\n| [Jordan Bradford](https://github.com/jrdnbradford)                                                  |\n\n## Community\n\n- [X](https://x.com/draculatheme) - Best for getting updates about themes and new stuff.\n- [GitHub](https://github.com/dracula/dracula-theme/discussions) - Best for asking questions and discussing issues.\n- [Discord](https://draculatheme.com/discord-invite) - Best for hanging out with the community.\n\n## Contributing\nSee [`CONTRIBUTING.md`](/.github/CONTRIBUTING.md).\n\n## Acknowledgments\n\nI'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.\n\n## License\n\n[MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdracula%2FdRacula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdracula%2FdRacula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdracula%2FdRacula/lists"}