Giter VIP home page Giter VIP logo

leaflet-geomaps-nhs's Introduction

Using leaflet to create geographical mappings. NHS geographies as example.

Overview

  • Code as: 02-geoplot-approach.R.

  • ICB boundary downloaded from ONS Open Geography Geoportal. Others, such as Regions or Local Authorities, can also be sourced.

  • Additional ICB information (for hover, colour-coding, labels, filtering) can be defined in ICS_master.xlsx. In this case, as an example, we sourced some additional population projection information and practice number information from NHS England allocations.

  • Trust file trusts_master.xlsx should contain latitute and longitude. This can be geocoded from postcodes (provided in reference files, namely etr.csv and ect.csv), by using a library such as postcodesioR.

  • Further trust information (for hover, colour-coding, labels, filtering) can be defined as additional columns in the same file.

Example results *

*(will render from https://nhsengland.github.io/leaflet-geomaps-NHS/). If seeing readme, click to website or follow links below.

simple cloropleth of ICB boundaries

Output of simple cloropleth of ICB boundaries

<iframe src="Output/ICS_2023-06-28-2.html" height="600px" width="100%" style="border:none;"></iframe>

cloropleth of ICB boundaries colour-coded for population

Output of cloropleth of ICB boundaries colour-coded for population

<iframe src="Output/ICS_pop_2023-06-28-2.html" height="600px" width="100%" style="border:none;"></iframe>

ICB layer with added Trust markers layer

Output of ICB layer with added Trust markers layer

<iframe src="Output/AOPv02-cloro-ICS_Trust_2023-06-28-2.html" height="600px" width="100%" style="border:none;"></iframe>

ICB layer with added Trust circles layer

Output of ICB layer with added Trust circles layer

<iframe src="Output/AOPv02-circles-cloro-ICS_Trust_2023-06-28-2.html" height="600px" width="100%" style="border:none;"></iframe>

leaflet-geomaps-nhs's People

Contributors

mbfons avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.