{"id":17403754,"url":"https://github.com/marcosci/deviz","last_synced_at":"2025-04-15T19:26:59.717Z","repository":{"id":80779380,"uuid":"319101824","full_name":"marcosci/deviz","owner":"marcosci","description":"🖱️ + ⌨️   tracking and visualization in R","archived":false,"fork":false,"pushed_at":"2021-01-16T18:41:22.000Z","size":45679,"stargazers_count":15,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-15T19:26:51.302Z","etag":null,"topics":["ggplot2","inputdevice","pynput","r","visualization"],"latest_commit_sha":null,"homepage":"https://marcosci.github.io/deviz/","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/marcosci.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-06T18:24:09.000Z","updated_at":"2024-01-10T12:15:49.000Z","dependencies_parsed_at":"2023-03-24T02:32:07.041Z","dependency_job_id":null,"html_url":"https://github.com/marcosci/deviz","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/marcosci%2Fdeviz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosci%2Fdeviz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosci%2Fdeviz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosci%2Fdeviz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcosci","download_url":"https://codeload.github.com/marcosci/deviz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249137249,"owners_count":21218673,"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":["ggplot2","inputdevice","pynput","r","visualization"],"created_at":"2024-10-16T19:07:52.848Z","updated_at":"2025-04-15T19:26:59.678Z","avatar_url":"https://github.com/marcosci.png","language":"R","funding_links":[],"categories":[],"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)\nlibrary(deviz)\n```\n\n# deviz\n\n\u003c!-- badges: start --\u003e\n[![Codecov test coverage](https://codecov.io/gh/marcosci/deviz/branch/master/graph/badge.svg)](https://codecov.io/gh/marcosci/deviz?branch=master)\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n[![R-CMD-check](https://github.com/marcosci/deviz/workflows/R-CMD-check/badge.svg)](https://github.com/marcosci/deviz/actions)\n\u003c!-- badges: end --\u003e\n\n/dɪˈvaɪz/ (device + vizualisation)\n\n## Input device tracking and visualization in R\n\n🖱️ + ⌨️ \u0026nbsp; tracking and visualization in R.\ndeviz wraps the the python package [`pynput`](https://pynput.readthedocs.io/en/latest/index.html), which allows us to collect the mouse movement and keyboard strokes data.\n\n## Installation\n\nYou can install the development version from [GitHub](https://github.com/) with:\n\n```r\n# install.packages(\"devtools\")\ndevtools::install_github(\"marcosci/deviz\")\n```\n\n## Example\n\n### Mouse\n\n#### Mouse movement tracking\n\nIf you want to track your mouse, just run:\n\n```{r, eval=FALSE}\nlibrary(deviz)\nmouse_df \u003c- track_mouse(\"00h00m90s\")\n```\n\n... this will track your mouse for 90 seconds, but also block your R console. If you use RStudio, the most convienent way to track your mouse movement with `deviz` is to run `track_mouse(\"00h00m90s\", as_job = TRUE)`. This launches the function as an RStudio job, which at its end returns a `mouse_df` object with the tracked data.\n\nThe returned contains information about the type of mouse input (movement, click, scroll) and further information about the specific event:\n\n```{r}\nmouse_df\n```\n\n### Visualize mouse movement\n\n```{r}\nvisualize_mouse(mouse_df, type = \"dot\")\n```\n\n### Keyboard\n\n#### Keyboard strokes tracking\nEquivalent to the way we can track mouse movement, we can track the key strokes in a given time interval:\n\n```{r, eval=FALSE}\nlibrary(deviz)\nkey_df \u003c- track_keyboard(\"00h00m90s\")\n```\n\nThere is also the possibility to run this command as an RStudio Job.\n\n### Visualize mouse movement\n\n```{r, fig.height=6, fig.width=12, dpi=300}\nvisualize_keyboard(key_df)\n```\n\n\n## Code of Conduct\n\nPlease note that the deviz project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcosci%2Fdeviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcosci%2Fdeviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcosci%2Fdeviz/lists"}