Section 2 Environment Preparation

2.1 Environment Recommendation

  • System: MacOS 10.5 / 11.0 Windows 10

  • IDE: RStudio 1.3 (MacOS) R >= 3.6

2.2 Import packages for spatial analysis and map making

If there are errors take place, you can run install.packages({missing package name}) to install packages.

library(tidyverse)
library(data.table)
library(sp)
library(sf)
library(table1)
library(tm)
library(spatstat)
library(here)
library(sp)
library(rgeos)
# library(maptools)
library(tmap)
library(sf)
library(geojson)
library(geojsonio)
library(tmaptools)
library(RColorBrewer)
library(spdep) 
library(lubridate)