{"id":13712486,"url":"https://github.com/datacamp/ggdc","last_synced_at":"2026-03-12T02:01:40.524Z","repository":{"id":46815913,"uuid":"115665920","full_name":"datacamp/ggdc","owner":"datacamp","description":"Datacamp Themes for ggplot2.","archived":false,"fork":false,"pushed_at":"2021-10-18T20:00:43.000Z","size":12952,"stargazers_count":8,"open_issues_count":8,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-06T02:03:36.782Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datacamp.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-28T22:58:41.000Z","updated_at":"2025-02-28T11:30:15.000Z","dependencies_parsed_at":"2022-09-06T23:20:10.428Z","dependency_job_id":null,"html_url":"https://github.com/datacamp/ggdc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datacamp/ggdc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Fggdc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Fggdc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Fggdc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Fggdc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datacamp","download_url":"https://codeload.github.com/datacamp/ggdc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacamp%2Fggdc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30412236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T00:40:14.898Z","status":"online","status_checked_at":"2026-03-12T02:00:07.260Z","response_time":114,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-08-02T23:01:19.009Z","updated_at":"2026-03-12T02:01:40.504Z","avatar_url":"https://github.com/datacamp.png","language":"R","funding_links":[],"categories":["Themes and aesthetics"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r setup, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\nggdc:::dc_set_chunk_opts()\nlibrary(dplyr)\nlibrary(ggplot2)\n```\n\n# ggdc\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\nThe goal of ggdc is to provides Datacamp themes for ggplot2, rstudio, and other\ndocument formats.\n\n## Installation\n\nYou can install the package from github using `devtools`.\n\n``` r\ndevtools::install_github(\"datacamp/ggdc\")\n```\n\n## Plotting Theme\n\n`ggdc` supports two variants of the datacamp theme (light and dark).\n\n## Light Theme\n\n```{r example_1}\nlibrary(ggdc)\np \u003c- diamonds %\u003e% \n  ggplot(aes(x = carat, y = price, color = cut)) +\n  geom_point(alpha = 0.6) +\n  labs(\n    title = \"Price vs. Carat\",\n    subtitle = 'Weightier diamonds are more expensive',\n    caption = 'Source: Diamonds dataset'\n  ) +\n  scale_color_datacamp(palette = 'accents_light')\n\np +\n  theme_datacamp_light()\n```\n\n### Dark Theme\n\n```{r dark-theme}\np + \n  theme_datacamp_dark()\n```\n\n\n### Logo\n\nYou can add a logo to the plot using `finalize_plot`. You can make this the default for all plots in an Rmd by adding `dc_set_chunk_opts(finalize_plot = TRUE)` in the setup chunk.\n\n```{r}\nfinalize_plot(p + theme_datacamp_dark())\n```\n\n### Facets\n\n```{r example-facets}\ndiamonds %\u003e% \n  ggplot(aes(x = price)) +\n  geom_histogram() +\n  facet_wrap(~ cut, scales = 'free_y') +\n  labs(\n    title = 'Histogram of Diamonds Prices',\n    caption = 'Source: ggplot2'\n  ) +\n  theme_datacamp_light() +\n  scale_fill_datacamp()\n```\n\n## Rstudio Theme\n\n`ggdc` also ships with a syntax highlighting theme for RStudio. You can install\nit by running\n\n```r\ninstall_rstheme()\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacamp%2Fggdc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatacamp%2Fggdc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacamp%2Fggdc/lists"}