Turing Geovisualization Engine

L Hama

2022-03-04

Who?

  • Nik Lomax
    • Associate Professor of Data Analytics for Population Research
  • Roger Beecham
    • Lecturer in Geographic Data Science, co-leader of the Centre for Spatial Analysis and Policy (CSAP)
  • Layik Hama

What?

The Turing Geovisualisation Engine (TGVE) is an open source, web-based, interactive visual analytics tool for geospatial(Zou et al. 2018) data analysis, built using R and React (JavaScript).

tgve home

why (rationale)?

  • We needed it even before the funding (2019)
  • Geovisualization is tough
  • Mainstream data science workflows has gaps for geovisualization
  • Web enables interactivity in data science (both in R and Python)
  • To discover new methods and techniques
  • We can and are inspired by giants like Tableau et al.

“The most profound technologies are those that disappear”

~ (Weiser 1991)

So far

SaferActive TGVE

  • “stable” but still labelled “beta” npm package
  • showcased two national scale datasets
  • new R package tgver (not on CRAN yet)
  • scalable, decoupled and production grade application

Paradigm

R & JS

  • RStudio and others drive JS from R (Shiny)
  • TGVE keeps them (R & JS) separate completely

The npm package (1)

  • Easy usage in various environments (web, mobile, desktop and GitHub pages)
    • data democratization
  • API driven development
  • Automating laborious tasks (Smart)
  • Current challenge: modular and extensible

The npm package (2)

function App() {
  return (
    <Eatlas 
    defaultURL='https://api.coronavirus.data.gov.uk/v1/data?filters=areaType=utla&structure={"date":"date","newCases":"newCasesBySpecimenDate","ctyua19cd":"areaCode"}&format=csv'
    geographyURL='https://raw.githubusercontent.com/tgve/example-data/main/utlas.geojson'
    geographyColumn='ctyua19cd'
    column="newCases"
    dark="false"
    />
  );
}

R package: tgver (1)

# eval=FALSE
tgver::tgve()
knitr::include_url("https://tgve.github.io/app/?defaultURL=https://raw.githubusercontent.com/tgve/example-data/main/casualties_100.geojson")

tgver (2)

RStudio

  1. do interactive geospatial analysis and visualization fast.
  2. use R’s echo-system to drive (1)
  3. facilitate web application deployment for production
  4. discover/research

tgver (3)

  • For (1) Advanced geospatial analysis, one vignette is in.
  • for (2) more docs and emphasis? Shiny/IPyWidget comparison. Why not URL params?
  • For (3) the package needs more functions. We can leave this for future versions

tgver (4) - time permitting

The R vignette: https://tgve.github.io/tgver/articles/r-and-js.html

Highlight (1)

API variables in URL

We can pass data and geography sources (all API values) to an instance of the TGVE.

  • use the same instance with different datasets
  • easy use in R and Python workflows (Rmarkdown & Jupyter respectively)
  • like: www.instance.com?defaultURL=url&geographyURL=geoURL&geographycolumn=name
  • future versions: www.instance.com?...filter={column:[1,2]}

Highlight (2)

Jupyter without IPyWidgets

kaggle

https://www.kaggle.com/layikhama/jupyter-tgve

Showcase SPENSER

knitr::include_url("https://geospenser.com")

Showcase SaferActive

knitr::include_url("https://map.saferactive.org?")

Desktop

kaggle

Build community

  • Break grounds?
  • Ask for features?
  • Your help!

Future

  • Obvious
    • Novel visualization layers
    • Automated geography detection
    • Dataset report generation
  • AI module(s)?
    • VISAI?
    • Data profiling?

Conclusions

  • Current functionality is enough to get the packages out
  • Funding to collaborate with Turing REG (Research Engineering Group)
  • Continue developing The TGVE
  • Continue building a community around TGVE

Thank you

  • ATI: www.turing.ac.uk/research/research-projects/turing-geovisualization-engine
  • GH: www.github.com/tgve
  • Recent visualization paper - (Beecham et al. 2021)

tgve home

References

Beecham, Roger, Jason Dykes, Layik Hama, and Nik Lomax. 2021. “On the Use of ‘Glyphmaps’ for Analysing the Scale and Temporal Spread of COVID-19 Reported Cases.” ISPRS International Journal of Geo-Information 10 (4). https://doi.org/10.3390/ijgi10040213.
Weiser, Mark. 1991. “The Computer for the 21 St Century.” Scientific American 265 (3): 94–105.
Zou, Taotao, Wenshu Li, Pengyuan Liu, Xianchuang Su, Hai Huang, Yang Han, and Xiaoying Guo. 2018. “An Overview of Geospatial Information Visualization.” In 2018 IEEE International Conference on Progress in Informatics and Computing (PIC), 250–54. IEEE.