ABSTRACT

This chapter shows how to build a Shiny web application to upload and visualize spatio-temporal data. The app allows to upload a shapefile with a map of a region, and a CSV file with the number of disease cases and population in each of the areas in which the region is divided. The chapter examines HTML widgets created with JavaScript libraries and embedded in Shiny by using the htmlwidgets package. To read the shapefile to use the readOGR function of the rgdal package. When files are uploaded with fileInpu have different names from the ones in the directory. The app.R file is saved inside a directory called appdir.