{"id":18043565,"url":"https://github.com/emilhvitfeldt/ggpage","last_synced_at":"2025-04-05T12:07:58.604Z","repository":{"id":56936879,"uuid":"101570252","full_name":"EmilHvitfeldt/ggpage","owner":"EmilHvitfeldt","description":"Creates Page Layout Visualizations in R 📄📄📄","archived":false,"fork":false,"pushed_at":"2019-06-13T23:50:00.000Z","size":17339,"stargazers_count":339,"open_issues_count":4,"forks_count":12,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-29T11:11:18.402Z","etag":null,"topics":["data-visualization","datavisualization","dataviz","ggplot2","r","rstats"],"latest_commit_sha":null,"homepage":"https://emilhvitfeldt.github.io/ggpage/","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/EmilHvitfeldt.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}},"created_at":"2017-08-27T17:55:37.000Z","updated_at":"2025-03-22T11:10:37.000Z","dependencies_parsed_at":"2022-08-21T01:10:29.450Z","dependency_job_id":null,"html_url":"https://github.com/EmilHvitfeldt/ggpage","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmilHvitfeldt%2Fggpage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmilHvitfeldt%2Fggpage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmilHvitfeldt%2Fggpage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmilHvitfeldt%2Fggpage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmilHvitfeldt","download_url":"https://codeload.github.com/EmilHvitfeldt/ggpage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332612,"owners_count":20921853,"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":["data-visualization","datavisualization","dataviz","ggplot2","r","rstats"],"created_at":"2024-10-30T17:09:09.269Z","updated_at":"2025-04-05T12:07:58.584Z","avatar_url":"https://github.com/EmilHvitfeldt.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\"\n)\n```\n\n# ggpage \u003cimg src='man/figures/logo.png' align=\"right\" height=\"139\" /\u003e\n\n[![Travis build status](https://travis-ci.org/EmilHvitfeldt/ggpage.svg?branch=master)](https://travis-ci.org/EmilHvitfeldt/ggpage)\n[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/EmilHvitfeldt/ggpage?branch=master\u0026svg=true)](https://ci.appveyor.com/project/EmilHvitfeldt/ggpage)\n[![Coverage status](https://codecov.io/gh/EmilHvitfeldt/ggpage/branch/master/graph/badge.svg)](https://codecov.io/github/EmilHvitfeldt/ggpage?branch=master)\n[![CRAN status](https://www.r-pkg.org/badges/version/ggpage)](https://cran.r-project.org/package=ggpage)\n\n**ggpage** is a package to create pagestyled visualizations of text based data. It uses ggplot2 and final returns are ggplot2 objects.\n\n## Version 0.2.0\n\nIn this new version I have worked to include a lot of use cases that wasn't available in the first version. These new elements are previewed in the vignette.\n\n## Installation\n\nYou can install the released version of **ggpage** from [CRAN](https://cran.r-project.org/) with:\n\n```{r eval = FALSE}\ninstall.packages(\"ggpage\")\n```\n\nor you can install the developmental version of **ggpage** from github with:\n\n```{r gh-installation, eval = FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"EmilHvitfeldt/ggpage\")\n```\n\n## Example\n\nThe package includes The Tinder-box by H.C. Andersen for examples.\n\n```{r message=FALSE}\nlibrary(tidyverse)\nlibrary(ggpage)\n\nhead(tinderbox, 10)\n```\n\nThe basic workflow with **ggpage** is using either \n\n- `ggpage_quick` for a quick one function call plot or,\n- combining `ggpage_build` and `ggpage_plot` to do analysis (NLP for example) before the final plot is produced.\n\nFor a simple demonstration we apply `ggpage_quick` to our `tinderbox` object. It is important that the data.frame that is used have the text in a column named \"text\".\n\n```{r}\nggpage_quick(tinderbox)\n\n# Also pipeable\n# tinderbox %\u003e% ggpage_quick()\n```\n\nThe same result would be achieved by using\n\n```{r eval=FALSE}\ntinderbox %\u003e% \n  ggpage_build() %\u003e% \n  ggpage_plot()\n```\n\nBut this approach allows us to introduce more code between `ggpage_build` and `ggpage_plot` giving us multiple more ways to enhance the plots\n\n```{r}\ntinderbox %\u003e%\n  ggpage_build() %\u003e%\n  mutate(long_word = stringr::str_length(word) \u003e 8) %\u003e%\n  ggpage_plot(aes(fill = long_word)) +\n  labs(title = \"Longer words throughout The Tinder-box\") +\n  scale_fill_manual(values = c(\"grey70\", \"blue\"),\n                    labels = c(\"8 or less\", \"9 or more\"),\n                    name = \"Word length\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilhvitfeldt%2Fggpage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femilhvitfeldt%2Fggpage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femilhvitfeldt%2Fggpage/lists"}