{"id":13711851,"url":"https://github.com/coolbutuseless/ggqr","last_synced_at":"2025-10-29T01:31:09.741Z","repository":{"id":95359586,"uuid":"389956378","full_name":"coolbutuseless/ggqr","owner":"coolbutuseless","description":"ggplot2 geom for QR codes","archived":false,"fork":false,"pushed_at":"2021-07-27T11:27:37.000Z","size":38,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-01T21:01:39.719Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coolbutuseless.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"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}},"created_at":"2021-07-27T11:26:39.000Z","updated_at":"2024-07-24T17:18:20.000Z","dependencies_parsed_at":"2023-07-04T20:16:39.830Z","dependency_job_id":null,"html_url":"https://github.com/coolbutuseless/ggqr","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/coolbutuseless%2Fggqr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolbutuseless%2Fggqr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolbutuseless%2Fggqr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolbutuseless%2Fggqr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coolbutuseless","download_url":"https://codeload.github.com/coolbutuseless/ggqr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238753017,"owners_count":19524879,"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.323Z","updated_at":"2025-10-29T01:31:09.432Z","avatar_url":"https://github.com/coolbutuseless.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\nlibrary(ggqr)\n```\n\n# ggqr\n\n\u003c!-- badges: start --\u003e\n![](https://img.shields.io/badge/cool-useless-green.svg)\n\u003c!-- badges: end --\u003e\n\n`ggqr` provides `geom_qr()` for inserting [QR Codes](https://en.wikipedia.org/wiki/QR_code) into a plot.\n\nThe core QR functionality is provided by [Bob Rudis's](https://twitter.com/hrbrmstr) [qrencoder](https://cran.r-project.org/package=qrencoder) package.\n\n### What's in the box\n\n* `geom_qr()` to add QR codes to a plot\n* `grGrob()` to create a QR grob \n\n### Future Possibilities?\n\n* Add automatic label positioning to avoid overlap of codes\n\n## Installation\n\nYou can install from [GitHub](https://github.com/coolbutuseless/ggqr) with:\n\n``` r\n# install.package('remotes')\nremotes::install_github('coolbutuseless/ggqr')\n```\n\n## Example\n\n```{r example, fig.width=8}\nlibrary(ggplot2)\nlibrary(ggqr)\n\nplot_df       \u003c- head(mtcars)\nplot_df$car   \u003c- paste0(\"https://duckduckgo.com/?q=\", rownames(plot_df))\nplot_df$hjust \u003c- c(-0.1, 1.1, 1.1, -0.1,   0,   0)\nplot_df$vjust \u003c- c( 1.1, 0.0, 0.0, -0.1, 1.1, 1.1)\n\nggplot(plot_df) +\n  geom_qr(\n    aes(\n      x     = mpg, \n      y     = wt, \n      label = car, \n      hjust = I(hjust), \n      vjust = I(vjust), \n      col   = as.factor(cyl)\n    ), \n    size = 0.8\n  ) +\n  geom_point(aes(mpg, wt), size = 3) +\n  theme_bw() + \n  theme(legend.position = 'bottom') +\n  labs(title = \"ggqr::geom_qr() - QR codes with search links to car names\")\n```\n\n\n## Related Software\n\n* [ggplot2](https://cran.r-project.org/package=ggplot2)\n* [qrencoder](https://cran.r-project.org/package=qrencoder)\n\n## Acknowledgements\n\n* R Core for developing and maintaining the language.\n* CRAN maintainers, for patiently shepherding packages onto CRAN and maintaining\n  the repository\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolbutuseless%2Fggqr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoolbutuseless%2Fggqr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolbutuseless%2Fggqr/lists"}