{"id":16598447,"url":"https://github.com/robinl/hierarchical_bubble_r_html_widget","last_synced_at":"2026-07-02T21:02:19.430Z","repository":{"id":151655064,"uuid":"89796106","full_name":"RobinL/hierarchical_bubble_r_html_widget","owner":"RobinL","description":"An HTML widget for R that displays hierarchical data in a nested bubble chart","archived":false,"fork":false,"pushed_at":"2017-04-30T09:10:05.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-25T04:24:24.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/RobinL.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-29T15:59:45.000Z","updated_at":"2021-02-24T12:18:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"17720393-88c2-4660-a437-e34591b9efb1","html_url":"https://github.com/RobinL/hierarchical_bubble_r_html_widget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RobinL/hierarchical_bubble_r_html_widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinL%2Fhierarchical_bubble_r_html_widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinL%2Fhierarchical_bubble_r_html_widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinL%2Fhierarchical_bubble_r_html_widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinL%2Fhierarchical_bubble_r_html_widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobinL","download_url":"https://codeload.github.com/RobinL/hierarchical_bubble_r_html_widget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinL%2Fhierarchical_bubble_r_html_widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35062691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-12T00:08:42.260Z","updated_at":"2026-07-02T21:02:19.398Z","avatar_url":"https://github.com/RobinL.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: \"README\"\nauthor: \"Robin Linacre\"\ndate: \"30 April 2017\"\noutput: md_document\n---\n\n```{r setup, include=FALSE}\nknitr::opts_chunk$set(echo = TRUE)\n```\n\n# Hierarchical bubble\n\nA zoomable, pannable hierarchical bubble chart HTML Widget for R implemented in d3v4.\n\nThis is work in progress, but you can find a working example of a Shiny app [within the repo](https://github.com/RobinL/hierarchical_bubble_r_html_widget/blob/master/example.R).\n\n## Instructions\n\nThe widget expects data in the following format (showing first few rows only):\n\n```{r, echo=FALSE}\ndf \u003c- hierarchicalbubble::generate_test_data()[1:2,]\n\nnames \u003c- paste0(\"cat_\", 1:4)\ndf_l \u003c- hierarchicalbubble::wide_to_long_hierarchy(df,names, \"val\")\nknitr::kable(df_l, options=list(scrollX = TRUE))\n```\n\nHowever, you're more likely to have data that looks like this (first few rows only):\n\n```{r, echo=FALSE}\ndf \u003c- hierarchicalbubble::generate_test_data()[1:3,]\nknitr::kable(df)\n```\n\nSo a convenience function is provided that converts between the two:\n\n```{r, eval=FALSE}\n\ndf \u003c- hierarchicalbubble::generate_test_data()[1:5,]\nnames \u003c- paste0(\"cat_\", 1:4)\n\ndf_l \u003c- hierarchicalbubble::wide_to_long_hierarchy(df,names, \"val\")\n```\n\nTo see your visualisation use \n\n```{r, eval=FALSE}\nhierarchicalbubble::hierarchical_bubble(df_l)\n```\n\nHere's a screenshot of the widget embedded in a Shiny app:\n![Screenshot](http://i.imgur.com/AdHQHtX.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinl%2Fhierarchical_bubble_r_html_widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinl%2Fhierarchical_bubble_r_html_widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinl%2Fhierarchical_bubble_r_html_widget/lists"}