{"id":28388367,"url":"https://github.com/gdmcdonald/bmiplot","last_synced_at":"2025-07-15T06:40:53.001Z","repository":{"id":182446332,"uuid":"102835055","full_name":"gdmcdonald/BMIplot","owner":"gdmcdonald","description":"A simple tool to make a BMI plot of height vs. weight in ggplot2 in R","archived":false,"fork":false,"pushed_at":"2018-02-07T13:24:15.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-31T05:45:03.228Z","etag":null,"topics":["bmi","data-visualization","ggplot2","r"],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gdmcdonald.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-09-08T07:58:59.000Z","updated_at":"2017-09-08T08:09:38.000Z","dependencies_parsed_at":"2023-07-20T02:57:07.093Z","dependency_job_id":null,"html_url":"https://github.com/gdmcdonald/BMIplot","commit_stats":null,"previous_names":["gdmcdonald/bmiplot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gdmcdonald/BMIplot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdmcdonald%2FBMIplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdmcdonald%2FBMIplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdmcdonald%2FBMIplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdmcdonald%2FBMIplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gdmcdonald","download_url":"https://codeload.github.com/gdmcdonald/BMIplot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdmcdonald%2FBMIplot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265414702,"owners_count":23761054,"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":["bmi","data-visualization","ggplot2","r"],"created_at":"2025-05-30T21:30:30.887Z","updated_at":"2025-07-15T06:40:52.993Z","avatar_url":"https://github.com/gdmcdonald.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BMIplot\nA simple tool to make a BMI plot of height vs. weight in ggplot2 in R\n\n## Examples\n \n### Set up demo data set\n```\ndemo_data=read.csv(\"http://people.ucsc.edu/~cdobkin/NHIS%202007%20data.csv\")%\u003e%\n   mutate(Weight=weight/2.20462, #convert pounds to kg\n          Height=height*2.54,    #convert inches to cm\n          Gender=recode(SEX,`1`=\"Male\",`2`=\"Female\"))%\u003e%\n   filter(Height\u003c200,Weight\u003c200) #remove ridiculous entries\n```\n   \n   \n### Specify lots\n```\nmakeBMIplot(sample_n(demo_data,100),\n            weight=\"Weight\",\n            height=\"Height\",\n            colFactor=\"Gender\",\n            aspect_ratio = 3)\n```\n\n![Example 1](BMIex1.jpeg)\n\n### Specify colour factor\n```\nmakeBMIplot(sample_n(demo_data,100),\n            colFactor=\"Gender\")\n```\n\n![Example 2](BMIex2.jpeg)\n\n### Don't specify colour factor\n```\nmakeBMIplot(sample_n(demo_data,100),\n            alpha=0.3)\n```\n\n![Example 3](BMIex3.jpeg)\n\n### Add jitter and alpha to counteract overplotting\n```\nmakeBMIplot(demo_data,\n            weight=\"Weight\",\n            height=\"Height\",\n            colFactor=\"Gender\",\n            aspect_ratio = 3,\n            jitter=TRUE,\n            alpha=0.4)\n``` \n\n![Example 4](BMIex4.jpeg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgdmcdonald%2Fbmiplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgdmcdonald%2Fbmiplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgdmcdonald%2Fbmiplot/lists"}