R Shiny in Government - Top 7 Dashboards You Should See

Estimated time:

R Shiny allows developers to write production-ready dashboards in no time, and for any use case. It’s not rare to find a vast number of dashboards in business-related domains, such as sales and marketing, but the possibilities don’t end there. Today we bring you seven curated examples of R Shiny in government. These dashboards are used for anything from analyzing living costs to using AI for disaster recovery. Government agencies and municipalities don't always have the most well-funded tech departments. Further, they can’t afford to spend countless hours going over hundreds of report pages. Dashboards provide a win-win solution - the users can pinpoint the area of interest easily, and the developers don’t have to custom-tailor the reports. <blockquote><strong>Join the biggest R Shiny event of the year - <a href="https://appsilon.com/2022-appsilon-shiny-conference/" target="_blank" rel="noopener noreferrer">2022 Appsilon Shiny Conference</a>.</strong></blockquote> Here’s a list of our top seven dashboards made with R Shiny in government: <ul><li><a href="#rstudio-1">RStudio: Crime Watch</a></li><li><a href="#rstudio-2">RStudio: Voters Profile</a></li><li><a href="#newzeland-1">New Zealand Sectors Dashboard</a></li><li><a href="#newzeland-2">New Zealand Living Cost Explorer</a></li><li><a href="#appsilon-1">Appsilon: AI for Disaster Recovery</a></li><li><a href="#appsilon-2">Appsilon: Polluter Alert</a></li><li><a href="#scotland">Scotland National Electrofishing Program</a></li></ul> Want to learn about more Shiny dashboard use cases? Check out our recent post on <a href="https://appsilon.com/r-shiny-in-life-sciences-examples/" target="_blank" rel="noopener noreferrer">R Shiny Dashboards in Life Sciences</a>. You can also view our curated <a href="https://demo.appsilon.com/" target="_blank" rel="noopener noreferrer">Shiny demo gallery</a>. See what's possible with R and Shiny - from Port Analytics to <a href="https://appsilon.com/shiny-videogame-video-tutorial/" target="_blank" rel="noopener noreferrer">Shiny video games</a>. <hr /> <h2>Shiny Dashboard Examples in Government</h2> <h3 id="rstudio-1">RStudio: Crime Watch Dashboard</h3> The dashboard uses geocoding and GPS to allow users to retrieve and map data from the UK Police database at the location of their interest. Currently, users can only choose locations within England, Wales, and Northern Ireland. <img class="size-full wp-image-11618" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b2ac9e1c25a2576393391f_1-3.webp" alt="RStudio Crime Watch Dashboard - city of london government dashboard" width="2774" height="2172" /> Image 1 - RStudio’s Crime Watch dashboard The dashboard shows the data only for the most recent month (available in the database), and only for a 1-mile radius around the chosen location. In addition, you can also see a summary bar plot of all incidents grouped by a category. <em>So, why is this dashboard useful?</em> Well, government officials can use it, provided it’s connected to real data, to discover locations that could benefit from increasing the number of police officials. The type of crime in one area could also be a deciding factor for certain actions, for example. Learn more: <ul><li><a href="https://cultureofinsight.shinyapps.io/crime-watch/" target="_blank" rel="noopener noreferrer">View the Crime Watch Dashboard</a></li><li><a href="https://github.com/PaulC91/crime-watch" target="_blank" rel="noopener noreferrer">Source code</a></li></ul> <h3 id="rstudio-2">RStudio: Voters Profile</h3> The Voters Profile dashboard is a textbook example of R Shiny in government. It provides access to charts, maps, and an innovative way to investigate voters’ profiles in the Brazilian 2014 elections. It was recognized as an honorable mention in the 2019 Shiny contest. <img class="size-full wp-image-11620" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b2abf10726c5370e620cc0_2-4.webp" alt="RStudio Voters Profile government dashboard" width="2774" height="2172" /> Image 2 - RStudio’s Voters Profile dashboard This dashboard allows government officials and others to easily analyze the 2014 elections in Brazil. You can view both the first and second-round results by state and by city. There’s also a bar chart showing how many votes each candidate got. The first tab - <em>Federal level</em> - shows the presidential election votes, while the second tab - <em>State level</em> - displays votes for governors and senators. Learn more: <ul><li><a href="https://voronoys.shinyapps.io/voronoys/" target="_blank" rel="noopener noreferrer">View the Voter Profile Dashboard</a></li><li><a href="https://github.com/voronoys/voronoys_sc" target="_blank" rel="noopener noreferrer">Source code</a></li></ul> <h3 id="newzeland-1">New Zealand Sectors Dashboard</h3> The sectors dashboard aims to be a one-stop shop for all information about New Zealand's economy by sector. It brings together a range of economic datasets produced by MBIE and Statistics New Zealand into one easy-to-use tool. <img class="size-full wp-image-11622" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b2abf12404f12fca8a6ae4_3-4.webp" alt="New Zealand Sectors dashboard" width="2774" height="2172" /> Image 3 - New Zealand Sectors dashboard The dashboard allows both government officials and individuals to track sector situation and performance, view financial performance, and compare performance between sectors. You can use the dashboard to get the most recent insights into GDP, employment, firm count, fixed capital formation, labor productivity growth, surplus per firm/employee, debt ratio, and many other metrics. Learn more: <ul><li><a href="http://sectorsdashboard.mbie.govt.nz/" target="_blank" rel="noopener noreferrer">View the New Zeland Sectors Dashboard</a></li></ul> <h3 id="newzeland-2">New Zealand Living Cost Explorer Dashboard</h3> Another dashboard by New Zeland. Makes you wonder if other countries could develop similar dashboards that demonstrate the capabilities of R Shiny in government. This one presents data from Household Living-costs Price Indexes. It shows how price changes vary depending upon the average basket of goods of different types of people, such as beneficiaries, Māori, and Superannuitants. <img class="size-full wp-image-11624" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b2abf22404f12fca8a6b77_4-4.webp" alt="New Zealand Living Cost Explorer municipal dashboard" width="2774" height="2172" /> Image 4 - New Zealand Living Cost Explorer dashboard The dashboard serves both government officials and citizens by summarizing expenditure patterns, inflation, and other facts over time. You can use the dashboard to explore average weekly expenditures per category, such as housing, food, transport, health, education, and others - and even compare living costs over time. There’s also an option to export the reports either as PDF, PNG, or CSV. Learn more: <ul><li><a href="https://statisticsnz.shinyapps.io/livingcostsexplorer/" target="_blank" rel="noopener noreferrer">View the New Zeland Living Cost Explorer dashboard</a></li><li><a href="https://github.com/alan-bentley/livingcostsexplorer" target="_blank" rel="noopener noreferrer">Source code</a></li></ul> <h3 id="appsilon-1">Appsilon: AI for Disaster Recovery Dashboard</h3> The dashboard enables governments to quickly access the scale of damage to provide humanitarian aid as fast as possible. Currently, you can analyze data from the following disasters: Hurricane Florence, Midwest Flooding, Palu Tsunami, and Santa Rosa Wildfire. It’s based on a model which Appsilon’s AI team has built for the <a href="https://xview2.org/" target="_blank" rel="noopener noreferrer">xView2 competition</a> <img class="size-full wp-image-11626" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b2abf338f242e04ca07fbc_5-4.webp" alt="Appsilon’s AI for Disaster Recovery dashboard" width="2774" height="2172" /> Image 5 - Appsilon’s AI for Disaster Recovery dashboard The dashboard lets you inspect multiple images for each disaster and use a slider to compare the before and after situations. You can also overlay the model’s output over the image to see which areas suffer the most damage. The model analyzes a pair of images, one before and one after the disaster, and then locates buildings and accesses the damage they sustained. Learn more: <ul><li><a href="https://demo.appsilon.com/apps/building_damage_assessment/" target="_blank" rel="noopener noreferrer">View the AI for Disaster Recovery dashboard</a></li><li><a href="https://arxiv.org/abs/1911.09296" target="_blank" rel="noopener noreferrer">Dataset</a></li><li><a href="https://appsilon.com/satellite-image-analysis-with-fast-ai-for-disaster-recovery/" rel="noopener noreferrer">Project post</a></li></ul> <h3 id="appsilon-2">Appsilon: Polluter Alert Dashboard</h3> This dashboard has been built in 3 days for Appsilon’s <a href="https://github.com/Appsilon/shiny.semantic" target="_blank" rel="noopener noreferrer">shiny.semantic</a> hackathon. Its purpose is to monitor pollution since many people in Poland are worried about the air quality. The main reason for air pollution is “low emission” caused by heating stoves and boilers, especially when illegal materials are used as fuel, such as waste. <img class="size-full wp-image-11628" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b2ac2a5d384bd9ea912d9e_6-4.webp" alt="Appsilon’s Polluter Alert dashboard" width="2774" height="2172" /> Image 6 - Appsilon’s Polluter Alert dashboard This Shiny dashboard allows reporting air pollution sources. It uses real-time <a href="https://developer.airly.eu/" target="_blank" rel="noopener noreferrer">Airly API</a> for air quality statistics, and other functionalities are mocked. It can be used both by citizens and local government to locate and monitor major polluters in the area. The dashboard shows different statistics, such as current pollution, and pollution over time, measured in PM 2.5μm and PM 10μm. In plain English, “PM” stands for “Particulate matter”, or microscopic matter suspended in air or water. PM 2.5μm represents particles that are less than 2.5μm in diameter. Learn more: <ul><li><a href="https://demo.appsilon.com/apps/polluter/" target="_blank" rel="noopener noreferrer">View the Polluter Alert dashboard</a></li></ul> <h3 id="scotland">Scotland National Electrofishing Program</h3> The last dashboard of this R Shiny in government list was developed to visualize and export data collected, analyzed, and reported under the <a href="https://www2.gov.scot/Topics/marine/Salmon-Trout-Coarse/Freshwater/Monitoring/ElectrofishingProgramme" target="_blank" rel="noopener noreferrer">National Electrofishing Programme for Scotland (NEPS)</a>. At the time of writing, only salmon data was available. <img class="size-full wp-image-11630" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01e712a228de4b21e441c_7-4.webp" alt="Image 7 - Scotland National Electrofishing Program federal government dashboard" width="2774" height="2172" /> Image 7 - Scotland National Electrofishing Program dashboard Unlike the other dashboards explored in this R Shiny in government article, this dashboard was created by government bodies for end-users. It allows you to view data at the site or regional levels, at the scale of individual “GRTS regions” or the whole of Scotland. The particularly interesting charts are visible in the regional sections. In there, you can view estimates of mean observed densities of salmon in 2018 and 2019. You can also compare them with regional benchmark densities and gradings. Learn more: <ul><li><a href="https://scotland.shinyapps.io/sg-national-electrofishing-programme-scotland/" target="_blank" rel="noopener noreferrer">View the Scotland National Electrofishing Program dashboard</a></li></ul> <hr /> <h2>Conclusion - R Shiny in Government</h2> To summarize - if your field of work can benefit from data analytics and data science, it can also benefit from R Shiny dashboards. Today you’ve seen seven dashboards that perfectly demonstrate the capabilities of R Shiny in government, and we’ve only scratched the surface. There are many other government-specific dashboards that aren’t open to the public. If you’re looking to build your first R Shiny dashboard, you can use <a href="https://templates.appsilon.com/" target="_blank" rel="noopener">Appsilon Shiny Dashboard Templates</a> to simplify the process. The bundle contains a ton of beautiful and easy-to-use templates. The best part - is it’s entirely free. In case you need something more advanced, we’re also here to help. <a href="https://appsilon.com/" target="_blank" rel="noopener">Appsilon</a> is an <a href="https://appsilon.com/appsilon-is-an-rstudio-full-service-certified-partner/" rel="noopener noreferrer">RStudio Full Service Certified Partner</a>. We develop advanced R Shiny applications for Fortune 500 companies across the globe. We’d be happy to help you choose the right options for your use case.

Contact us!
Damian's Avatar
Damian Rodziewicz
Head of Sales
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
shiny dashboards