{"id":16573999,"url":"https://github.com/schmytzi/simpleplottable","last_synced_at":"2026-04-20T01:04:12.863Z","repository":{"id":142588652,"uuid":"346770705","full_name":"Schmytzi/simplePlotTable","owner":"Schmytzi","description":"A simple table to include in ggplot","archived":false,"fork":false,"pushed_at":"2021-03-16T11:50:57.000Z","size":150,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T15:50:45.722Z","etag":null,"topics":["alignment","data-visualization","ggplot2","table"],"latest_commit_sha":null,"homepage":"","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/Schmytzi.png","metadata":{"files":{"readme":"README.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-11T16:43:46.000Z","updated_at":"2024-09-03T01:07:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e4d7073-9e5f-41cd-804b-3bbb6239363a","html_url":"https://github.com/Schmytzi/simplePlotTable","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Schmytzi/simplePlotTable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Schmytzi%2FsimplePlotTable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Schmytzi%2FsimplePlotTable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Schmytzi%2FsimplePlotTable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Schmytzi%2FsimplePlotTable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Schmytzi","download_url":"https://codeload.github.com/Schmytzi/simplePlotTable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Schmytzi%2FsimplePlotTable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32028550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"ssl_error","status_checked_at":"2026-04-20T00:17:31.068Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["alignment","data-visualization","ggplot2","table"],"created_at":"2024-10-11T21:43:36.211Z","updated_at":"2026-04-20T01:04:12.846Z","avatar_url":"https://github.com/Schmytzi.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# simplePlotTable\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\nThis package provides a way of drawing a table with ggplot2, using `geom_text`, only.\nThe main purpose is to make tables easy to align using e.g. patchwork or cowplot and use them as axis labels.\nI want to keep styling options to a minimum (i.e. aesthetics available to `geom_text`),\nso no further options are planned.\nHowever, you can add additional elements to the table, as it is a simple plot with continuous coordinates.\n\n## Installation\n\n```{r}\ndevtools::install_github(\"Schmitzi/simplePlotTable\")\n```\n\n## Examples\n\n### Basic Output\n```{r}\nlibrary(simplePlotTable)\nlibrary(ggplot2)\n\n# Using mtcars for demonstration\ndata \u003c- mtcars[1:10, c(\"wt\", \"mpg\", \"cyl\")]\n\n# Create object\ntbl \u003c- new_SimplePlotTable(data[, c(\"cyl\", \"wt\")])\n\ntbl_plot \u003c- autoplot(tbl)\ntbl_plot\n```\n\n![Basic Output Example](man/img/plain.png)\n\n### Styling\n```{r}\nlibrary(magrittr)\n\ntbl %\u003e%\n  set_style(hjust=1) %\u003e%\n  set_style(cols=2, fontface=\"italic\") %\u003e%\n  set_style(cols=1, rows=4, colour=\"red\") %\u003e% \n  set_column_header_style(face=\"bold\") %\u003e% \n  set_row_header_style(face=\"italic\", hjust=1) %\u003e% \n  autoplot()\n```\n\n![Styling Example](man/img/styling.png)\n\n### Alignment to Other Plots\n```{r}\nlibrary(patchwork)\n\n# Adding factor with cars for ggplot, preserves order\ndata$car \u003c- factor(rownames(data), levels=rownames(data))\n\nmpg_plot \u003c- ggplot(data) +\n  geom_col(aes(x=car, y=mpg)) +\n  theme_classic() + \n  theme(axis.text.y = element_blank(), axis.title.y=element_blank()) +\n  coord_flip()\n  \n(tbl_plot | mpg_plot) + plot_layout(widths=c(1,3))\n```\n![Alignment Example](man/img/alignment.png)\n\n## Why?\nI found existing solutions, like gridExtra's tableGrob, too annoying to use,\nespecially when I tried to align them to plots.\nThere are definitely a lot more customizable options out there.\nThis packages goal is _not_ to be a full-fledged system for table creation in ggplot.\nIt is supposed to make it as easy as possible to draw a simple table in ggplot2 and align it to an axis.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmytzi%2Fsimpleplottable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschmytzi%2Fsimpleplottable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschmytzi%2Fsimpleplottable/lists"}