{"id":13711288,"url":"https://github.com/dgrtwo/ggfreehand","last_synced_at":"2025-07-11T20:36:28.175Z","repository":{"id":29718471,"uuid":"33261569","full_name":"dgrtwo/ggfreehand","owner":"dgrtwo","description":"Add freehand circles to ggplot2 graphs","archived":false,"fork":false,"pushed_at":"2015-04-01T17:20:47.000Z","size":108,"stargazers_count":17,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T06:55:21.313Z","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/dgrtwo.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}},"created_at":"2015-04-01T17:19:17.000Z","updated_at":"2020-01-07T21:13:40.000Z","dependencies_parsed_at":"2022-08-27T18:40:23.501Z","dependency_job_id":null,"html_url":"https://github.com/dgrtwo/ggfreehand","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/dgrtwo%2Fggfreehand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrtwo%2Fggfreehand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrtwo%2Fggfreehand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgrtwo%2Fggfreehand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgrtwo","download_url":"https://codeload.github.com/dgrtwo/ggfreehand/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902240,"owners_count":20366258,"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:06.622Z","updated_at":"2025-03-18T04:30:25.044Z","avatar_url":"https://github.com/dgrtwo.png","language":"R","funding_links":[],"categories":["Plot layers","ggplot"],"sub_categories":["Additional Plot Types"],"readme":"Add freehand circles to ggplot2 graphs\n======================================\n\nThe ggfreehand package allows one to add freehand red circles to a plot. This can improve many plots, but most importantly those that are to be posted on the Stack Exchange network, since everyone knows [graphs with freehand red circles are the only kind worth posting](http://meta.stackexchange.com/a/19775/176330).\n\n### Example: a mediocre plot without freehand circles\n\nSuppose we set up a plot of a user's (mine) number of Stack Overflow answers per month (similar to [this analysis](http://meta.stackoverflow.com/questions/252756/are-high-reputation-users-answering-fewer-questions/252757#252757)), using the [stackr](https://github.com/dgrtwo/stackr) package to query the API:\n\n    library(ggplot2)\n    library(dplyr)\n    library(lubridate)\n    library(stackr)\n\n    answers \u003c- stack_users(712603, \"answers\", num_pages = 10, pagesize = 100)\n    answers_per_month \u003c- answers %\u003e%\n        mutate(month = round_date(creation_date, \"month\")) %\u003e%\n        count(month)\n\n    ggplot(answers_per_month, aes(month, n)) + geom_line()\n\n![without freehand](http://i.imgur.com/C7v9D9R.png)\n\nThis plot is... OK. But as pointed out [here](http://meta.stackoverflow.com/questions/252756/are-high-reputation-users-answering-fewer-questions/252757#comment9735_252757), it's missing something.\n\n### Example: a terrific plot with freehand circles\n\nWe now add freehand red circles to the plot, marking the top two most active months.\n\n    top_2_months \u003c- answers_per_month %\u003e% top_n(2)\n\n    library(ggfreehand)\n    ggplot(answers_per_month, aes(month, n)) + geom_line() +\n        geom_freehand(data = top_2_months)\n\n![with freehand](http://i.imgur.com/jnWlTwM.png)\n\nThat looks *so much* better! It is now worthy of being posted on a Stack Exchange network site.\n\n### Installation and documentation\n\nThis package can be installed with the [devtools](https://github.com/hadley/devtools) package:\n\n    devtools::install_github(\"dgrtwo/ggfreehand\", build_vignettes = TRUE)\n\nAt which point you can read the vignette for more examples:\n\n    browseVignettes(\"ggfreehand\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgrtwo%2Fggfreehand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgrtwo%2Fggfreehand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgrtwo%2Fggfreehand/lists"}