{"id":13690564,"url":"https://github.com/spyrales/gouvdown","last_synced_at":"2025-05-02T11:31:26.884Z","repository":{"id":42697017,"uuid":"258241802","full_name":"spyrales/gouvdown","owner":"spyrales","description":"French government design system for R Markdown","archived":false,"fork":false,"pushed_at":"2023-11-20T14:03:42.000Z","size":16186,"stargazers_count":51,"open_issues_count":26,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-22T20:43:13.360Z","etag":null,"topics":["dsfr","ggplot2-theme","programme10pourcent","r","rmarkdown"],"latest_commit_sha":null,"homepage":"https://spyrales.github.io/gouvdown/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spyrales.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2020-04-23T15:03:35.000Z","updated_at":"2025-04-17T00:55:20.000Z","dependencies_parsed_at":"2023-11-20T14:56:32.489Z","dependency_job_id":null,"html_url":"https://github.com/spyrales/gouvdown","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyrales%2Fgouvdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyrales%2Fgouvdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyrales%2Fgouvdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyrales%2Fgouvdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spyrales","download_url":"https://codeload.github.com/spyrales/gouvdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252030182,"owners_count":21683301,"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":["dsfr","ggplot2-theme","programme10pourcent","r","rmarkdown"],"created_at":"2024-08-02T17:00:21.949Z","updated_at":"2025-05-02T11:31:26.108Z","avatar_url":"https://github.com/spyrales.png","language":"R","funding_links":[],"categories":[":package: Packages :package:"],"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, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# gouvdown\n\n\u003c!-- badges: start --\u003e\n[![R build status](https://github.com/spyrales/gouvdown/workflows/R-CMD-check/badge.svg)](https://github.com/spyrales/gouvdown/actions)\n[![Codecov test coverage](https://codecov.io/gh/spyrales/gouvdown/branch/master/graph/badge.svg)](https://codecov.io/gh/spyrales/gouvdown?branch=master)\n\u003c!-- badges: end --\u003e\n\n**gouvdown** let you write R Markdown documents which comply with the French\ngovernment design system.\n\n## Installation\n\nYou can install the development version from [GitHub](https://github.com/) \nwith:\n\n``` r\n# install.packages(\"remotes\")\nremotes::install_github(\"spyrales/gouvdown\")\n```\n\n## Palettes\n\n**gouvdown** provides the official colors and a set of palettes. \n\n```{r palettes, echo=FALSE}\npal \u003c- gouvdown::gouv_palettes\nlabels \u003c- names(pal)\n\ndo.call(\n  pals::pal.bands,\n  c(pal, list(labels = labels, gap = 0.2, main = \"gouvdown palettes\"))\n)\n```\n\n\n## Theme\n\n**gouvdown** provides themes for `{ggplot2}` graphics and maps.\n\n\n```{r theme, echo = FALSE, warning = FALSE, message = FALSE}\nlibrary(ggplot2)\nlibrary(gouvdown)\nggplot(data = iris, aes(x = Sepal.Length, y = Sepal.Width)) +\n  geom_point(aes(color = Species, shape = Species)) +\n  labs(\n    x = \"Sepal Length\", y = \"Sepal Width\", title = \"Sepal Length-Width\",\n    subtitle = \"with theme_gouv()\"\n  ) +\n  theme_gouv() +\n  scale_color_gouv_discrete(palette = \"pal_gouv_qual1\")\n```\n\n## Rmarkdown\n\n### html_document\n\n**gouvdown** provides a html template for `{Rmarkdown}`\n\n![](man/figures/html_gouv.png)\n\n### bookdown\n\n**gouvdown** provides a bookdown project template for `{bookdown}`\n\n![](man/figures/gouvbook.png)\n\n### Word output format\n\n**gouvdown** provides a word template for `{Rmarkdown}` for writing an official letter.\n\n## References\n\n+ Design system: \u003chttps://www.gouvernement.fr/charte/charte-graphique-les-fondamentaux/introduction\u003e\n+ Example: \u003chttps://github.com/DISIC/design.numerique.gouv.fr/tree/master/src/assets\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyrales%2Fgouvdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspyrales%2Fgouvdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyrales%2Fgouvdown/lists"}