{"id":17855480,"url":"https://github.com/nrennie/ggtextcircle","last_synced_at":"2026-03-01T12:32:26.509Z","repository":{"id":225899672,"uuid":"767025899","full_name":"nrennie/ggtextcircle","owner":"nrennie","description":"R package to plot text in a (partial) circle.","archived":false,"fork":false,"pushed_at":"2024-11-07T22:25:34.000Z","size":368,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T13:21:53.274Z","etag":null,"topics":["r","r-package"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nrennie.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-03-04T15:15:01.000Z","updated_at":"2024-11-07T22:25:38.000Z","dependencies_parsed_at":"2024-04-02T16:31:27.770Z","dependency_job_id":"2330f9f3-3978-435c-97f9-03514b066454","html_url":"https://github.com/nrennie/ggtextcircle","commit_stats":null,"previous_names":["nrennie/ggtextcircle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nrennie/ggtextcircle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrennie%2Fggtextcircle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrennie%2Fggtextcircle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrennie%2Fggtextcircle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrennie%2Fggtextcircle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nrennie","download_url":"https://codeload.github.com/nrennie/ggtextcircle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrennie%2Fggtextcircle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29969243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T11:43:06.159Z","status":"ssl_error","status_checked_at":"2026-03-01T11:43:03.887Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["r","r-package"],"created_at":"2024-10-28T02:23:07.816Z","updated_at":"2026-03-01T12:32:26.486Z","avatar_url":"https://github.com/nrennie.png","language":"R","funding_links":[],"categories":["Plot layers"],"sub_categories":[],"readme":"# ggtextcircle\n\nR package to plot text in a (partial or full) circle.\n\n## Example\n\nGenerate some data using the {charlatan} package (only required for examples, not required for package):\n\n```r\nset.seed(123)\nplot_df \u003c- data.frame(name = charlatan::ch_name(n = 30))\n```\n\nBasic usage:\n\n```r\nggplot(data = plot_df) +\n  geom_textcircle(mapping = aes(label = name))\n```\n\n![](man/figures/example1.png)\n\nWith styling:\n\n```r\nggplot(data = plot_df) +\n  geom_textcircle(mapping = aes(label = name), size = 3) +\n  scale_x_continuous(limits = c(-6, 5)) +\n  scale_y_continuous(limits = c(-6, 6)) +\n  coord_fixed() +\n  theme_void()\n```\n\n![](man/figures/example2.png)\n\nA more complex example (uses {ggtext} and {dplyr}):\n\n```r\n# read in #TidyTuesday leap Day data\ntuesdata \u003c- tidytuesdayR::tt_load(\"2024-02-27\")\nbirths \u003c- tuesdata$births\ndeaths \u003c- tuesdata$deaths\n\n# Plot\nggplot() +\n  geom_textcircle(\n    data = dplyr::filter(births, year_birth \u003e= 1900),\n    mapping = aes(label = person),\n    colour = \"#35978f\",\n    r = 6,\n    size = 2.5\n  ) +\n  geom_textcircle(\n    data = dplyr::filter(deaths, year_death \u003e= 1900),\n    mapping = aes(label = person),\n    colour = \"#bf812d\",\n    r = 3,\n    size = 2.5\n  ) +\n  # annotate with {ggtext}\n  ggtext::geom_textbox(\n    data = data.frame(x = 0, y = 1.0, label = \"Births and deaths on February 29\u003csup\u003eth\u003c/sup\u003e\"),\n    mapping = aes(x = x, y = y, label = label),\n    hjust = 0,\n    fontface = \"bold\",\n    lineheight = 0.5,\n    fill = \"transparent\",\n    box.colour = \"transparent\",\n    size = 5,\n    minwidth = 0.5\n  ) +\n  ggtext::geom_textbox(\n    data = data.frame(\n      x = 0, y = -0.5,\n      label = glue::glue(\"February 29 is a leap day (or 'leap year day'), an\n                         intercalary date added periodically to create leap\n                         years in the Julian and Gregorian calendars. Wikpedia\n                         lists {nrow(dplyr::filter(births, year_birth \u003e= 1900))} \u003cspan style='color: #35978f;'\u003e\n                         births\u003c/span\u003e and {nrow(dplyr::filter(deaths, year_death \u003e= 1900))}}\n                         \u003cspan style='color: #bf812d;'\u003edeaths\u003c/span\u003e on a leap\n                         day since 1900.\")\n    ),\n    mapping = aes(x = x, y = y, label = label),\n    hjust = 0,\n    lineheight = 0.5,\n    fill = \"transparent\",\n    box.colour = \"transparent\",\n    size = 4,\n    minwidth = 0.45\n  ) +\n  scale_x_continuous(limits = c(-8, 8)) +\n  scale_y_continuous(limits = c(-8, 8)) +\n  coord_fixed() +\n  theme_void()\n```\n\n![](man/figures/example3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnrennie%2Fggtextcircle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnrennie%2Fggtextcircle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnrennie%2Fggtextcircle/lists"}