{"id":13712452,"url":"https://aidangildea.github.io/duke/","last_synced_at":"2025-05-06T22:31:12.819Z","repository":{"id":65752414,"uuid":"567550442","full_name":"aidangildea/duke","owner":"aidangildea","description":"Creating a Color-Blind Friendly Duke Color Package.","archived":false,"fork":false,"pushed_at":"2023-12-15T20:50:27.000Z","size":83232,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-01T17:49:15.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://aidangildea.github.io/duke/","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/aidangildea.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-11-18T02:52:22.000Z","updated_at":"2024-02-06T13:20:28.000Z","dependencies_parsed_at":"2024-03-05T08:47:31.290Z","dependency_job_id":null,"html_url":"https://github.com/aidangildea/duke","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidangildea%2Fduke","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidangildea%2Fduke/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidangildea%2Fduke/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aidangildea%2Fduke/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aidangildea","download_url":"https://codeload.github.com/aidangildea/duke/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252778993,"owners_count":21802862,"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":[],"created_at":"2024-08-02T23:01:18.651Z","updated_at":"2025-05-06T22:31:12.214Z","avatar_url":"https://github.com/aidangildea.png","language":"R","funding_links":[],"categories":["Themes and aesthetics"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\",\n  fig.width = 8,\n  fig.asp = 0.618\n)\n```\n\n# duke\n\n\u003ca href=\"https://aidangildea.github.io/duke/\"\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"113\" /\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/aidangildea/duke/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/aidangildea/duke/actions/workflows/R-CMD-check.yaml){.pkgdown-devel}\n[![CRAN Status](https://www.r-pkg.org/badges/version/duke)](https://cran.r-project.org/package=duke){.pkgdown-release}\n\u003c!-- badges: end --\u003e\n\n## Overview\n\n**duke** allows users to generate visualizations with Duke's official suite of colors in a color blind friendly way. By using it alongside **ggplot2**, you can easily promote accessibility in the Duke community and beyond. \n\n## Installation\n\nYou can install the official version of `duke` from CRAN with:\n\n``` r\n# Install duke directly:\ninstall.packages(\"duke\")\n```\nOr alternatively, you can install the development version from GitHub:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"aidangildea/duke\")\n```\n\n## Usage\n\nThis package is fully integrated with ggplot2, and therefore, allows you to customize several visualization features such as the theme and color scales of your plots created with ggplot2.\n\n## Example\n\nBy using **duke** functions, you can easily convert your visualizations to Duke official colors.\n\n```{r plot}\nlibrary(ggplot2)\nlibrary(duke)\n\nplot1 \u003c- ggplot(mpg, aes(cty, hwy)) +\n  geom_point(aes(colour = fl)) +\n  labs(\n    title = \"City Miles per Gallon vs. Highway Miles per Gallon By Fuel Type\",\n    caption = \"Data sourced from mpg in ggplot2 package.\",\n    x = \"City Miles per Gallon (MPG)\", \n    y = \"Highway Miles per Gallon (MPG)\"\n  )\n\nplot2 \u003c- ggplot(mpg, aes(cty, hwy)) +\n  geom_point(aes(color = cyl)) +\n  labs(\n    title = \"City Miles per Gallon vs. Highway Miles per Gallon By Cylinders\", \n    caption = \"Data sourced from mpg in ggplot2 package.\", \n    x = \"City Miles per Gallon (MPG)\", \n    y = \"Highway Miles per Gallon (MPG)\"\n  )\n```\n\nThen, by pairing them with functions from this package, you can convert them into Duke-branded and colorblind-friendly versions.\n\n```{r themeduke, message = FALSE}\nplot1 +\n  theme_duke() +\n  scale_duke_color_discrete()\n\nplot2 +\n  theme_duke() +\n  scale_duke_continuous()\n```\n\n## Questions\n\nFor further questions about this package and its use, please open an issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/aidangildea.github.io%2Fduke%2F","html_url":"https://awesome.ecosyste.ms/projects/aidangildea.github.io%2Fduke%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/aidangildea.github.io%2Fduke%2F/lists"}