{"id":19284798,"url":"https://github.com/nacnudus/ggbillboard","last_synced_at":"2025-06-14T03:40:00.323Z","repository":{"id":71024133,"uuid":"278160469","full_name":"nacnudus/ggbillboard","owner":"nacnudus","description":"Use vacant ggplot2 facets for advertising","archived":false,"fork":false,"pushed_at":"2020-07-08T19:39:47.000Z","size":659,"stargazers_count":28,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T18:23:43.775Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nacnudus.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":"2020-07-08T18:05:38.000Z","updated_at":"2024-07-16T13:56:12.000Z","dependencies_parsed_at":"2023-06-05T11:31:24.859Z","dependency_job_id":null,"html_url":"https://github.com/nacnudus/ggbillboard","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/nacnudus%2Fggbillboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nacnudus%2Fggbillboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nacnudus%2Fggbillboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nacnudus%2Fggbillboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nacnudus","download_url":"https://codeload.github.com/nacnudus/ggbillboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250167610,"owners_count":21386004,"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-11-09T21:39:49.877Z","updated_at":"2025-04-22T03:32:24.791Z","avatar_url":"https://github.com/nacnudus.png","language":"R","funding_links":[],"categories":["Presentation, composition and scales"],"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# ggbillboard\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\nA package to fill vacant ggplot2 facets with images.  You could advertise your\nconsultancy, for example.\n\n## Installation\n\nYou can install the development version of ggbillboard from [GitHub](https://github.com/nacnudus/ggbillboard) with:\n\n``` r\n# install.packages(\"remotes\")\nremotes::install_github(\"nacnudus/ggbillboard\")\n```\n\n## Example\n\nThis is a basic example which shows you how to solve a common problem:\n\n```{r example}\nlibrary(ggbillboard)\n\nlibrary(ggplot2)\n\nlibrary(png) # To load png image files\nlibrary(jpeg) # To load jpeg image files\n\nimg1 \u003c- readPNG(system.file(\"img\", \"Rlogo.png\", package=\"ggbillboard\"))\nimg2 \u003c- readJPEG(system.file(\"img\", \"spongebob.png\", package=\"ggbillboard\"))\n\n# Images must be converted to grobs.\ng1 \u003c- grid::rasterGrob(img1, interpolate=TRUE)\ng2 \u003c- grid::rasterGrob(img2, interpolate=TRUE)\n\n# Create a plot\np1 \u003c-\n  ggplot(economics_long, aes(date, value)) +\n  geom_line() +\n  facet_wrap(vars(variable), scales = \"free_y\", nrow = 2)\n\n# Fill the vacant facet with an image\nbillboard(p1, g1)\n\n# If multiple facets are vacant, you can use more than one image, and they will\n# be recycled to fill all vacant facets.\np2 \u003c-\n  ggplot(ChickWeight, aes(Time, weight)) +\n  geom_point() +\n  facet_wrap(~ Diet, ncol = 3)\n\nbillboard(p2, list(g1, g2))\nbillboard(p2, g1)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnacnudus%2Fggbillboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnacnudus%2Fggbillboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnacnudus%2Fggbillboard/lists"}