{"id":13711866,"url":"https://github.com/ricardo-bion/ggradar","last_synced_at":"2025-05-06T21:32:28.165Z","repository":{"id":39460564,"uuid":"52234484","full_name":"ricardo-bion/ggradar","owner":"ricardo-bion","description":"radar charts with ggplot2","archived":false,"fork":false,"pushed_at":"2024-02-23T18:45:57.000Z","size":6132,"stargazers_count":334,"open_issues_count":31,"forks_count":96,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-13T22:35:06.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://twitter.com/ricardobion","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ricardo-bion.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2016-02-21T23:49:27.000Z","updated_at":"2024-11-06T22:34:07.000Z","dependencies_parsed_at":"2022-08-01T08:19:49.468Z","dependency_job_id":"134760ed-4981-47d0-90a3-67f96cfb85dd","html_url":"https://github.com/ricardo-bion/ggradar","commit_stats":{"total_commits":47,"total_committers":14,"mean_commits":3.357142857142857,"dds":0.7659574468085106,"last_synced_commit":"53404a563e2629e034cc7dd21afda40d213d1c64"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardo-bion%2Fggradar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardo-bion%2Fggradar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardo-bion%2Fggradar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardo-bion%2Fggradar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ricardo-bion","download_url":"https://codeload.github.com/ricardo-bion/ggradar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252772167,"owners_count":21801866,"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:12.453Z","updated_at":"2025-05-06T21:32:27.078Z","avatar_url":"https://github.com/ricardo-bion.png","language":"R","funding_links":[],"categories":["Plot layers","R","ggplot"],"sub_categories":["Additional Plot Types"],"readme":"---\ntitle: \"ggradar\"\noutput:\n  github_document\n---\n\n```{r setup, include=FALSE}\nknitr::opts_chunk$set(echo = TRUE, dpi = 300, message = FALSE, warning = FALSE, error = FALSE)\n```\n\n`ggradar` allows you to build radar charts with ggplot2. This package is based on [Paul Williamson's](http://rstudio-pubs-static.s3.amazonaws.com/5795_e6e6411731bb4f1b9cc7eb49499c2082.html) code, with new aesthetics and compatibility with ggplot2 2.0.\n\nIt was inspired by [d3radaR](http://www.buildingwidgets.com/blog/2015/12/9/week-49-d3radarr), an htmlwidget built by [timelyportfolio](https://github.com/timelyportfolio).\n\n## Install `ggradar`\n\n```{r, eval=FALSE}\ndevtools::install_github(\"ricardo-bion/ggradar\", \n                          dependencies = TRUE)\n```\n\n## Use `ggradar`\n\n```{r, fig.width=15, fig.height=10}\nlibrary(ggradar)\nlibrary(dplyr)\nlibrary(scales)\nlibrary(tibble)\n\nmtcars_radar \u003c- mtcars %\u003e% \n  as_tibble(rownames = \"group\") %\u003e% \n  mutate_at(vars(-group), rescale) %\u003e% \n  tail(4) %\u003e% \n  select(1:10)\n```\n\n```{r, echo = FALSE}\nknitr::kable(mtcars_radar,format = \"markdown\") \n```\n\n```{r}\nggradar(mtcars_radar)\n```\n\n## Custom fonts\n\nYou can also use custom font family in `ggradar`. In the following example, you would like to use Airbnb's font family named 'Circular Air' by first downloading it, installing it in your computer (not shown), and then registering it to R using `extrafont` package.\n\n```{r, eval = FALSE}\n# configured to work on a Mac, change directory to Unix or Windows\ndownload.file(\"https://github.com/ricardo-bion/ggtech/blob/master/Circular%20Air-Light%203.46.45%20PM.ttf\", \"~/Circular Air-Light 3.46.45 PM.ttf\", method = \"curl\")\n\nextrafont::font_import(pattern = 'Circular', prompt = FALSE)\n```\n\nFollowing the same procedure as in the previous example, you can then use 'Circular Air' font family in `ggradar` by adjusting `font.radar` argument. The following example shows that `ggradar` is also can be used in pipe `%\u003e%`.\n\n```{r, fig.width=15, fig.height=10}\nmtcars %\u003e% \n  as_tibble(rownames = \"group\") %\u003e% \n  mutate_at(vars(-group), rescale) %\u003e% \n  tail(4) %\u003e% \n  select(1:10) %\u003e% \n  ggradar(font.radar = \"Circular Air\")\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricardo-bion%2Fggradar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fricardo-bion%2Fggradar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricardo-bion%2Fggradar/lists"}