Institutions: Leeds Institute for Data Analytics & Turing Institute
Project: Dr. Nik Lomax and Dr. Roger Beecham
Research Theme: Urban Analytics, Sir Alan Wilson and Prof Mark Birkin.
May 2019 - Oct 2020
More geo-visualization than research engineering or engineering research.
A damaged Graphics Processing Unit (GPU)
x11()
quartz()
Screenshot from (Meinicke et al. 2017)
React is a JavaScript library which generates “HTML + CSS”
# `geoplumber` is still not on CRAN!
library(geoplumber)
# view a dataset such as the `traffic` sf object bundled
t <- gp_map(geoplumber::traffic, browse_map = FALSE,
height = "320px", width = "90%")
# use includeHTML for markdown
htmltools::includeHTML(t)
# p <- tolower(file.path(tempdir(), "gp"))
# gp_build()
p <- "~/code/geoplumber/my-app/"
ow <- setwd(p)
r <- gp_explore()
r$kill()
setwd(ow)
# add component
parent <- add_lines(
parent, # target
"<Route", # pattern
c( # what
# <Route exact path="/" component={
paste0('<Route exact path="/explore" component={'),
paste0('() => <Eatlas defaultURL="http://localhost:8000', endpoint,'"/>'),
'}/>'
)
)
# finally write before building
write(parent, "src/App.js")
# build & serve
if(run) {
# TODO: if already installed skip
gp_install_npm_package(tolower(component.name))
if(build) {
# TODO: gp_build is not made for this or refactor it
gp_build()
}
...
Turing Geo-visualization Engine in geoplumber
:
Slides from Uber Engineering DeckGL tea: shorturl.at/anKR5
Heavily customised code base of the project source code.
skimr
)