{"id":13711435,"url":"https://github.com/sharlagelfand/ggkeyboard","last_synced_at":"2025-04-12T04:15:31.765Z","repository":{"id":45483670,"uuid":"283496092","full_name":"sharlagelfand/ggkeyboard","owner":"sharlagelfand","description":"Make a keyboard using ggplot2.","archived":false,"fork":false,"pushed_at":"2023-12-09T17:11:46.000Z","size":24037,"stargazers_count":92,"open_issues_count":1,"forks_count":12,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-12T04:15:15.552Z","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/sharlagelfand.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-29T12:42:32.000Z","updated_at":"2025-01-20T13:54:28.000Z","dependencies_parsed_at":"2024-01-17T16:57:17.888Z","dependency_job_id":"98580b6d-0fa7-4cb7-bae7-a2fe0ff9548c","html_url":"https://github.com/sharlagelfand/ggkeyboard","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/sharlagelfand%2Fggkeyboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharlagelfand%2Fggkeyboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharlagelfand%2Fggkeyboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharlagelfand%2Fggkeyboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharlagelfand","download_url":"https://codeload.github.com/sharlagelfand/ggkeyboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514177,"owners_count":21116903,"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:08.153Z","updated_at":"2025-04-12T04:15:31.733Z","avatar_url":"https://github.com/sharlagelfand.png","language":"R","funding_links":[],"categories":["Plot layers"],"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  fig.width = 10, \n  fig.height = 4.5,\n  dpi = 300\n)\n```\n\n# ggkeyboard\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n\u003c!-- badges: end --\u003e\n\nggkeyboard lets you plot a keyboard and change the colours on it. This package is very experimental, so expect breaking changes as I work through making all the customization options as friendly as possible.\n\nYou can install ggkeyboard from github:\n\n``` r \n# install.packages(\"devtools\")\ndevtools::install_github(\"sharlagelfand/ggkeyboard\", ref = \"main\")\n```\n\n# Usage\n\nPlot a keyboard using `ggkeyboard()`. The default is very cute:\n\n```{r pastel}\nlibrary(ggkeyboard)\n\nggkeyboard()\n```\n\n## Colour palettes\n\nYou can change the colours, font, sizes, etc. There are a few built in colour palettes, available via `keyboard_palette()`:\n\n```{r palette}\nlibrary(scales)\n\nshow_col(keyboard_palette(\"serika\"))\n```\n\nThis keyboard is inspired by the [Drop + Zambumon MT3 Serika Custom Keycap Set](https://drop.com/buy/drop-zambumon-mt3-serika-custom-keycap-set):\n\n```{r serika}\nggkeyboard(palette = keyboard_palette(\"serika\"))\n```\n\nThis one is inspired by the [Melgeek MG Wahtsy ABS Doubleshot Keycap Set](https://drop.com/buy/melgeek-mg-wahtsy-abs-doubleshot-keycap-set):\n\n```{r wahtsy}\nggkeyboard(palette = keyboard_palette(\"wahtsy\"))\n```\n\nand this one by the [Domikey ABS Doubleshot SA Cyberpunk Pumper Keycap Set](https://drop.com/buy/domikey-abs-doubleshot-sa-cyberpunk-pumper-keycap-set):\n\n```{r cyberpunk}\nggkeyboard(palette = keyboard_palette(\"cyberpunk\"))\n```\n\n## Layouts\n\n`ggkeyboard()` defaults to using a tenkeyless keyboard, available in `tkl`:\n\n```{r tkl}\nhead(tkl)\n```\n\nThere is also a full keyboard layout available via `full`. This palette is based off the [Varmilo VA108 Fullsize Keyboard](https://drop.com/buy/varmilo-108-keyboard)\n\n```{r full}\nggkeyboard(full, palette = keyboard_palette(\"varmilo\"), font_size = 2.75)\n```\n\na 60% layout available via `sixty_percent` (colour palette based off the [Drop + T0mb3ry SA Yuri Custom Keycap Set](https://drop.com/buy/drop-t0mb3ry-sa-yuri-custom-keycap-set)):\n\n```{r sixty}\nggkeyboard(sixty_percent, palette = keyboard_palette(\"t0mb3ry\"), adjust_text_colour = FALSE)\n```\n\nand a mac layout, based off the Apple magic keyboard:\n\n```{r mac}\nggkeyboard(mac, palette = keyboard_palette(\"magic\"))\n```\n\nYou can use an ISO layout by changing `layout` to \"iso\", for any of the given keyboards:\n\n```{r iso}\nggkeyboard(tkl, layout = \"iso\")\n```\n\n## Highlighting\n\nYou can use `highlight_keys()` to emphasize any keys - for example, to highlight what keys make up the shortcut for the pipe (%\u003e%):\n\n```{r highlight}\nggkeyboard(tkl) %\u003e%\n  highlight_keys(c(\"Alt Left\", \"Shift Left\", \"M\"))\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharlagelfand%2Fggkeyboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharlagelfand%2Fggkeyboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharlagelfand%2Fggkeyboard/lists"}