{"id":26772939,"url":"https://github.com/paulgovan/qragadget","last_synced_at":"2025-04-15T21:25:00.564Z","repository":{"id":56937607,"uuid":"55851949","full_name":"paulgovan/QRAGadget","owner":"paulgovan","description":"A Shiny Gadget for Interactive QRA Visualizations","archived":false,"fork":false,"pushed_at":"2024-07-24T23:56:51.000Z","size":3722,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-25T16:09:36.124Z","etag":null,"topics":["gadget","raster","raster-data","shiny"],"latest_commit_sha":null,"homepage":"http://paulgovan.github.io/QRAGadget/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulgovan.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","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":"2016-04-09T15:31:05.000Z","updated_at":"2024-07-24T23:54:05.000Z","dependencies_parsed_at":"2024-07-09T05:11:45.435Z","dependency_job_id":"ed4e5f3d-16b7-4b40-bf95-3ff69087c57d","html_url":"https://github.com/paulgovan/QRAGadget","commit_stats":{"total_commits":116,"total_committers":1,"mean_commits":116.0,"dds":0.0,"last_synced_commit":"037b1147fe7eb9c9556889b53e4880d010c54581"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulgovan%2FQRAGadget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulgovan%2FQRAGadget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulgovan%2FQRAGadget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulgovan%2FQRAGadget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulgovan","download_url":"https://codeload.github.com/paulgovan/QRAGadget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249155599,"owners_count":21221635,"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":["gadget","raster","raster-data","shiny"],"created_at":"2025-03-29T01:30:21.641Z","updated_at":"2025-04-15T21:25:00.544Z","avatar_url":"https://github.com/paulgovan.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/QRAGadget)](https://CRAN.R-project.org/package=QRAGadget)\n[![CRAN checks](https://badges.cranchecks.info/summary/QRAGadget.svg)](https://cran.r-project.org/web/checks/check_results_QRAGadget.html)\n[![](http://cranlogs.r-pkg.org/badges/grand-total/QRAGadget)](https://cran.r-project.org/package=QRAGadget)\n[![](http://cranlogs.r-pkg.org/badges/last-month/QRAGadget)](https://cran.r-project.org/package=QRAGadget)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1145431.svg)](https://doi.org/10.5281/zenodo.1145431)\n\u003c!-- badges: end --\u003e\n\n# QRAGadget\n* Easily create Quantitative Risk Analysis (QRA) visualizations\n* Choose from numerous color palettes, basemaps, and different configurations\n\n# Overview\nQRAGadget is a [Shiny Gadget](https://shiny.rstudio.com/articles/gadgets.html) for creating interactive QRA visualizations. QRAGadget is powered by the excellent [leaflet](https://leafletjs.com/) and [raster](https://cran.r-project.org/package=raster) packages. While this gadget was initially intended for those interested in creating QRA visualizations, it may also be more generally applicable to anyone interested in visualizing raster data in an interactive map. \n\n# Getting Started\nTo install QRAGadget in [R](https://www.r-project.org):\n\n```\ninstall.packages(\"QRAGadget\")\n```\n\nOr to install the latest developmental version:\n\n```\ndevtools::install_github('paulgovan/QRAGadget')\n```\n\nAfter installation, and if using [RStudio](https://posit.co/products/open-source/rstudio/) (v0.99.878 or later), the gadget will appear in the `Addins` dropdown menu. Otherwise, to launch the gadget, simply type:\n\n```\nQRAGadget::QRAGadget()\n```\n\n# Example\n\n## Input/Output\n\nQRAGadget currently accepts two primary types of raster data: (1) a file upload (in csv format) or (2) an R `data.frame` object. In order to explore the gadget, create some dummy data:\n\n```\nsample \u003c- matrix(runif(36*36), ncol = 36, nrow = 36) %\u003e%\n  data.frame()\n```\n\nThen launch the app:\n\n```\nQRAGadget::QRAGadget()\n```\n\nLaunching the app brings up the *Input/Output* page. To find the dummy data, click *R Object* under **Data Type**, and then select *sample* from the dropdown menu.\n\nChoose a name for the output html file. After customizing the map, clicking *Done* will create a standalone html file in the current working directory (Be sure not to save over a previously created map file!). Click *Cancel* any time to start over. \n\nTo bookmark the app at any time, click the *Bookmark* button, which will create a unique url for the current state of the app.\n\n![](https://github.com/paulgovan/QRAGadget/blob/master/inst/images/InputOutput.PNG?raw=true)\n\n## Raster\n\nTo format the raster image, click the *Raster* icon. Here are a number of options for specifying the extents of the raster image (XMIN, XMAX, YMIN, and YMAX) as well as the [projection](https://rstudio.github.io/leaflet/raster.html) of the raster layer. It is very important that the raster layer be tagged with the correct project coordinate reference system. \n\nTo specify the bins for the color palette, click *Number* to select the total number of bins or *Cuts* to select both the number and the actual cut values for each bin.\n\nFinally, there is an option to disaggregate the raster layer and create a new one with a higher resolution (smaller cells) while also locally interpolating between the new cell values (smoothed cells). To disaggregate the raster layer, enter the number of cells to disaggregate.\n\nFor this example, use the default values for XMIN, XMAX, YMIN, and YMAX as well as the given projection, but enter 5 as the number of cells to disaggregate:\n\n![](https://github.com/paulgovan/QRAGadget/blob/master/inst/images/raster.PNG?raw=true)\n\n## Map\n\nTo view the interactive map, click the *Map* icon. Click the *Reset* button at any time in order to reset the extents of the map.\n\n![](https://github.com/paulgovan/QRAGadget/blob/master/inst/images/map.PNG?raw=true)\n\n## Preferences\n\nThe *Preferences* tab has a number of options for customizing the map:\n\n* The title of the map\n* The color palette (see [colorbrewer2.org](https://colorbrewer2.org))\n* The basemap (see [http://leaflet-extras.github.io](https://leaflet-extras.github.io/leaflet-providers/preview/index.html))\n* The control position\n* The legend position\n\nTo try out some of these options, select the *PuOr* **Color Palette**, the *Esri.WorldImagery* **Map Tile**, and move the **Control Position** over to the *bottomleft*:\n\n![](https://github.com/paulgovan/QRAGadget/blob/master/inst/images/preferences.PNG?raw=true)\n\nThis should result in the following interactive map:\n\n![](https://github.com/paulgovan/QRAGadget/blob/master/inst/images/Map2.PNG?raw=true)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulgovan%2Fqragadget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulgovan%2Fqragadget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulgovan%2Fqragadget/lists"}