{"id":13712182,"url":"https://github.com/Hy4m/ggvwline","last_synced_at":"2025-05-06T21:33:21.932Z","repository":{"id":113886547,"uuid":"395946491","full_name":"Hy4m/ggvwline","owner":"Hy4m","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-15T13:56:37.000Z","size":270,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-13T22:35:32.524Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hy4m.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}},"created_at":"2021-08-14T08:41:37.000Z","updated_at":"2024-06-09T22:39:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"f764e1b5-92f8-457b-b2d2-ad8975d92a61","html_url":"https://github.com/Hy4m/ggvwline","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/Hy4m%2Fggvwline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hy4m%2Fggvwline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hy4m%2Fggvwline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hy4m%2Fggvwline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hy4m","download_url":"https://codeload.github.com/Hy4m/ggvwline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252772402,"owners_count":21801919,"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:15.710Z","updated_at":"2025-05-06T21:33:21.581Z","avatar_url":"https://github.com/Hy4m.png","language":"R","funding_links":[],"categories":["Plot layers"],"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# ggvwline\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\nThe purpose of `ggvwline` is to provide a set of layer functions for drawing variable-width curves.\n\n## Installation\n\nYou can install the development version of ggvwline from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"Hy4m/ggvwline\")\n```\n\n## Example\n\nThis is a basic example which shows you how to draw variable-width curves:\n\n```{r example}\nlibrary(ggvwline)\nlibrary(ggplot2)\ntt \u003c- seq(0, 2 * pi, length.out = 102)[-c(1, 102)]\ndd \u003c- data.frame(x = cos(tt),\n                 y = sin(tt),\n                 w = runif(100, 10, 30),\n                 g = rep(LETTERS[1:4], each = 25))\n\nggplot(dd, aes(x, y, fill = g)) +\n  geom_vwline() +\n  coord_fixed()\n\nggplot(dd, aes(x, y, fill = g)) +\n  geom_offset_xspline(aes(width = w)) +\n  coord_fixed()\n\ndd2 \u003c- data.frame(x = 1,\n                 y = 1:10,\n                 xend = 2:11,\n                 yend = 3:12,\n                 width = runif(10, 3, 20),\n                 group = LETTERS[1:10])\n\nggplot(dd2, aes(x, y, xend = xend, yend = yend)) +\n  geom_vwdiagonal(aes(width = stat(index), fill = group),\n                  width_units = \"cm\",\n                  lineend = \"round\",\n                  alpha = 0.5)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHy4m%2Fggvwline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHy4m%2Fggvwline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHy4m%2Fggvwline/lists"}