{"id":13426524,"url":"https://github.com/Jkassof/rsquaire","last_synced_at":"2025-03-15T21:31:21.170Z","repository":{"id":97371089,"uuid":"89919494","full_name":"Jkassof/rsquaire","owner":"Jkassof","description":"Htmlwidget for responsive equal-square cartographs in R","archived":false,"fork":false,"pushed_at":"2017-05-29T02:44:35.000Z","size":1240,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-01-28T23:09:57.493Z","etag":null,"topics":["d3","data-visualization","htmlwidgets","maps","r"],"latest_commit_sha":null,"homepage":"http://www.jkassof.com/rsquaire","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/Jkassof.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-05-01T11:45:03.000Z","updated_at":"2022-01-05T11:06:39.000Z","dependencies_parsed_at":"2024-01-06T14:05:22.988Z","dependency_job_id":"8793692e-6b50-49f5-939b-bf9c5793f5fa","html_url":"https://github.com/Jkassof/rsquaire","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/Jkassof%2Frsquaire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jkassof%2Frsquaire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jkassof%2Frsquaire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jkassof%2Frsquaire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jkassof","download_url":"https://codeload.github.com/Jkassof/rsquaire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243792395,"owners_count":20348637,"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":["d3","data-visualization","htmlwidgets","maps","r"],"created_at":"2024-07-31T00:01:36.955Z","updated_at":"2025-03-15T21:31:20.536Z","avatar_url":"https://github.com/Jkassof.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Visualization"],"sub_categories":["Maps and Spatial Data"],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"img/rsquarelogo.png\"\u003e\n\u003c/p\u003e\n\nAn R interface for squaire.js, a JavaScript library to make responsive equal-area square maps using d3. The default layout of squares is a U.S. map. You can color the squares based on a variable, and create tooltips to provide more info. The [rsquaire website](http://jkassof.com/rsquaire) has a few examples that demonstrate the features available in `rsquaire`.\n\nThe Javascript library was created by [Wall Street Journal's Graphics Team](https://github.com/WSJ)\n\n### Installation\n\n```\ndevtools::install_github('jkassof/rsquaire')\n```\n\n### Input\n\n`rsquaire` accepts a dataframe in wide format. If using the default layout, there needs to be a \"state\" column, and a column for each variable you want to have available to the widget. These variables can be displayed through coloring or on a tooltip.\n\n```\nwide_data \u003c- data.frame(\n  state = state.abb,\n  var1 = rnorm(50, 50, 15),\n  var2 = rnorm(50, 15. 3),\n  var3 = c(\"Rep\", \"Dem\", \"Dem\")\n)\n\n```\n\n\n### Use\n\n\n`index` is the only required argument as it tells `rsquaire` which variable to color the squares by. See `?rsquaire` for details of all argument.\n\n```\nrsquaire(wide_data, index = \"stat1\")\n```\n\n\u003cimg src='img/rsquaire.png' width = \"500\"\u003e\n\n\u003cbr\u003e\u003cbr\u003e\n\nTo include other variables, enabled tooltips with the `tooltip` argument. `whitelist` tells the widget which variables to include in the tooltip, by default it will include all columns except \"state.\"\n\n```\nrsquaire(wide_data, index = \"stat1\", tooltip = TRUE)\n```\n\n\u003cimg src = 'img/tooltips.png' width = \"500\"\u003e\n\n\nCheck out `?rsquaire` for all arguments.\n\n### Attribution\n\nThe squaire.js library was created by [Wall Street Journal's Graphics Team](https://github.com/WSJ)\n\n### To do\n\n- Custom html tooltip layouts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJkassof%2Frsquaire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJkassof%2Frsquaire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJkassof%2Frsquaire/lists"}