{"id":13735732,"url":"https://github.com/JohnCoene/datamaps","last_synced_at":"2025-05-08T12:30:58.310Z","repository":{"id":85365995,"uuid":"85923197","full_name":"JohnCoene/datamaps","owner":"JohnCoene","description":"📍 datamaps htmlwidget for R","archived":false,"fork":false,"pushed_at":"2020-08-27T09:46:50.000Z","size":390,"stargazers_count":23,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-12T00:42:41.246Z","etag":null,"topics":["datamaps","htmlwidgets","r","visualization"],"latest_commit_sha":null,"homepage":"http://datamaps.john-coene.com/","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/JohnCoene.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-03-23T08:09:10.000Z","updated_at":"2023-11-20T01:06:17.000Z","dependencies_parsed_at":"2023-03-24T01:19:53.579Z","dependency_job_id":null,"html_url":"https://github.com/JohnCoene/datamaps","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnCoene%2Fdatamaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnCoene%2Fdatamaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnCoene%2Fdatamaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnCoene%2Fdatamaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnCoene","download_url":"https://codeload.github.com/JohnCoene/datamaps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253068372,"owners_count":21848799,"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":["datamaps","htmlwidgets","r","visualization"],"created_at":"2024-08-03T03:01:10.447Z","updated_at":"2025-05-08T12:30:57.823Z","avatar_url":"https://github.com/JohnCoene.png","language":"R","readme":"# datamaps\n\n[![Travis-CI Build Status](https://travis-ci.org/JohnCoene/datamaps.svg?branch=master)](https://travis-ci.org/JohnCoene/datamaps)\n[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/JohnCoene/datamaps?branch=master\u0026svg=true)](https://ci.appveyor.com/project/JohnCoene/datamaps)\n[![CRAN](https://img.shields.io/cran/v/datamaps.svg)](https://img.shields.io/cran/v/datamaps.svg)\n[![CRAN_Status_Badge](http://cranlogs.r-pkg.org/badges/grand-total/datamaps)](http://cranlogs.r-pkg.org/badges/grand-total/datamaps)\n\n![proxies](https://raw.githubusercontent.com/JohnCoene/projects/master/img/datamaps_proxy.gif)\n\nR htmlwidget for [datamaps](http://datamaps.github.io/), plot choropleth, overlay arcs and bubbles, customise options, easily interact with Shiny proxies.\n\n* [Installation](#installation)\n* [Details](#info)\n* [Examples](#examples)\n* [Shiny Proxies](#shiny-proxies)\n* [Proxies demo](http://shiny.john-coene.com/datamaps/)\n* [Website](http://datamaps.john-coene.com)\n\n## Installation\n\n```R\n# CRAN release\ninstall.packages(\"datamaps\")\n\n# Development version\ndevtools::install_github(\"JohnCoene/datamaps\")\n```\n\nDevelopment version includes 2 plugins, `add_icons` and `add_markers`.\n\n## Info\n\n* See [website](http://datamaps.john-coene.com/) for demos. \n* Includes proxies to update the visualisation without re-drawing entire map.\n* See NEWS.md for new features and bug fixes\n\n## Shiny Proxies\n\n* `update_bubbles` - update bubbles.\n* `update_choropleth` - update choropleth values.\n* `update_labels` - update labels.\n* `update_legend` - update the legend.\n* `update_arcs` - update arcs by coordinates.\n* `update_arcs_name` - update arcs by name.\n* `delete_map` - delete the map.\n\n## Examples\n\nExample proxy.\n\n### [demo](http://shiny.john-coene.com/datamaps/)\n\n```R\nlibrary(shiny)\n\nui \u003c- fluidPage(\n\n  textInput(\n    \"from\",\n    \"Origin\",\n    value = \"USA\"\n  ),\n  textInput(\n    \"to\",\n    \"Destination\",\n    value = \"RUS\"\n  ),\n  actionButton(\n    \"submit\",\n    \"Draw arc\"\n  ),\n  datamapsOutput(\"map\")\n)\n\nserver \u003c- function(input, output){\n\n  arc \u003c- reactive({\n    data.frame(from = input$from, to = input$to)\n  })\n\n output$map \u003c- renderDatamaps({\n   datamaps()\n })\n\n observeEvent(input$submit, {\n   datamapsProxy(\"map\") %\u003e%\n     add_data(arc()) %\u003e%\n     update_arcs_name(from, to)\n })\n\n}\n\nshinyApp(ui, server)\n}\n```\n","funding_links":[],"categories":["Visualization","R"],"sub_categories":["Maps and Spatial Data"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJohnCoene%2Fdatamaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJohnCoene%2Fdatamaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJohnCoene%2Fdatamaps/lists"}