Preface

Suggested citation

TODO: add citation

Author affiliations

Rex Parsons is a PhD Candidate at the Australian Centre Health Services Innovation, Queensland University of Technology (QUT). He developed the iTRAQI shiny app within his role as Senior Research Assistant at the ARC Centre of Excellence for Mathematical & Statistical Frontiers (ACEMS).

Prerequisites

This book is intended as a non-comprehensive guide to developing interactive maps with leaflet and shiny and covers the methods that were used in developing the iTRAQI shiny app. Since this book does focus on the applied problem of developing the iTRAQI shiny app, it includes specific methods used there that may be otherwise tricky to find.

There is a very small amount of javascript and css used to add certain features to leaflet. I’m not an expert in either of these languages so will not explain in detail how they work but will link to the sources that may explain it better.

For a more comprehensive introduction to leaflet, see the leaflet documentation.

For a more comprehensive introduction to shiny, see the Mastering Shiny book

A beginner-to-intermediate level of R is assumed.

Below is a list of packages that will be used. You can run the code to install those that are missing on your system.

pkgs <- c(
  "tidyverse",
  "sf",
  "sp",
  "gstat",
  "shiny",
  "leaflet",
  "raster",
  "rmapshaper",
  "RCurl",
  "glue"
)

required_packages <- pkgs[!pkgs %in% installed.packages()]

if (length(required_packages) > 0) {
  cat("Installing the following packages: \n", paste0(required_packages, collapse = ", "))
  install.packages(required_packages)
} else {
  cat("All required packages already installed!")
}