{"id":13711715,"url":"https://github.com/marcmenem/ggshadow","last_synced_at":"2025-08-14T05:17:43.408Z","repository":{"id":56935295,"uuid":"256331654","full_name":"marcmenem/ggshadow","owner":"marcmenem","description":"A collection of geoms for R's 'ggplot2' library.  geom_shadowpath(), geom_shadowline(),  geom_shadowstep() and geom_shadowpoint() functions draw a shadow below lines to make busy plots more aesthetically pleasing. geom_glowpath(), geom_glowline(), geom_glowstep() and geom_glowpoint() add a neon glow around lines to get a steampunk style.","archived":false,"fork":false,"pushed_at":"2024-03-16T10:43:07.000Z","size":1882,"stargazers_count":61,"open_issues_count":4,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T19:55:35.320Z","etag":null,"topics":["data-visualisation","ggplot2","r","rstats","vizualisation"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcmenem.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-16T21:16:20.000Z","updated_at":"2025-04-25T15:11:36.000Z","dependencies_parsed_at":"2024-01-17T16:59:05.409Z","dependency_job_id":"529b5592-20ad-4264-a05f-f78aadcab459","html_url":"https://github.com/marcmenem/ggshadow","commit_stats":{"total_commits":52,"total_committers":2,"mean_commits":26.0,"dds":0.25,"last_synced_commit":"bd909a7f2038105dce753f2f95cad546880f12eb"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/marcmenem/ggshadow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcmenem%2Fggshadow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcmenem%2Fggshadow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcmenem%2Fggshadow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcmenem%2Fggshadow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcmenem","download_url":"https://codeload.github.com/marcmenem/ggshadow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcmenem%2Fggshadow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270364971,"owners_count":24571423,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["data-visualisation","ggplot2","r","rstats","vizualisation"],"created_at":"2024-08-02T23:01:10.932Z","updated_at":"2025-08-14T05:17:43.356Z","avatar_url":"https://github.com/marcmenem.png","language":"R","funding_links":[],"categories":["Plot layers","R"],"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# ggshadow\n\n\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/ggshadow)](https://CRAN.R-project.org/package=ggshadow)\n[![License: GPL v2](https://img.shields.io/badge/License-GPL_v2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)\n\u003c!-- badges: end --\u003e\n\nThe goal of ggshadow is to provide shadow and glow geoms for points and lines plots created with 'ggplot2'.\n\n## :arrow_double_down: Installation\n\nYou can install the development version of ggshadow from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\npak::pkg_install(\"marcmenem/ggshadow\")\n```\n\n## :book: Vignette\n\n```{r vignette}\n## after installing the package\n# vignette(\"ggshadow\", package = \"ggshadow\")\n```\n\n## :chart: Example\n\n### With ggshadow\n\n```{r example}\nlibrary(ggplot2)\nlibrary(ggshadow)\n\nggplot(economics_long, aes(date, value01, colour = variable)) +\n  geom_shadowline()\n```\n\n### Without ggshadow\n\n```{r lineex}\nggplot(economics_long, aes(date, value01, colour = variable)) +\n  geom_line()\n```\n\n### `ggshadow` supports varying the line color\n\n```{r colorvarex}\nggplot(\n  economics_long,\n  aes(date, value01,\n    group = variable,\n    colour = value01,\n    shadowlinewidth = 5 * (1 - value01)\n  )\n) +\n  geom_shadowline(\n    shadowcolour = \"grey\",\n    shadowalpha = 0.5\n  )\n```\n\n### `ggshadow` also provides a Neon glow style\n\n```{r example-glow}\nggplot(economics_long, aes(date, value01, color = variable)) +\n  geom_glowline() +\n  guides(color = \"none\") +\n  theme(\n    plot.background = element_rect(fill = \"#190132\"),\n    panel.background = element_rect(fill = \"#190132\")\n  )\n```\n\n### Neon glow points\n\n```{r example-glowpoint}\nggplot(mtcars, aes(wt, mpg)) +\n  geom_glowpoint(color = \"yellow\") +\n  guides(color = \"none\") +\n  theme(\n    plot.background = element_rect(fill = \"#190132\"),\n    panel.background = element_rect(fill = \"#190132\")\n  )\n```\n\n\n### Adding a fill below the neon glow line\n\n```{r example-glowlinefill}\nggplot(\n  economics_long[economics_long$variable %in% c(\"pop\", \"unemploy\"), ],\n  aes(date, value01 - 0.5, color = variable, fill = variable)\n) +\n  geom_glowline() +\n  guides(color = \"none\", shadowcolour = \"none\", fill = \"none\") +\n  theme(\n    plot.background = element_rect(fill = \"#190132\"),\n    panel.background = element_rect(fill = \"#190132\")\n  )\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcmenem%2Fggshadow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcmenem%2Fggshadow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcmenem%2Fggshadow/lists"}