In Class Exercise

Exercise 2

Plot places in administratice areas of Taiwan you have visited so far.

## Reading layer `COUNTY_MOI_1081121' from data source `C:\Users\USER\Desktop\R_data management\0518\COUNTY_MOI_1081121.shp' using driver `ESRI Shapefile'
## Simple feature collection with 22 features and 4 fields
## geometry type:  MULTIPOLYGON
## dimension:      XY
## bbox:           xmin: 114.3593 ymin: 10.37135 xmax: 124.5611 ymax: 26.38528
## geographic CRS: TWD97

Exercise 3

Map an area of Tainan city to include three of your favorite places to eat as landmarks.

Exercise

Exercise 1

Build a thematic plot of the results of Taiwan 2020 presidential election between the DDP and the KMT. The geographical data (maps) for Taiwan can be obtained from DIVA-GIS: Geographic Information System for Biodiversity Research. Source: Taiwan presidential election 2020 . Wikipedia.

## Reading layer `TWN_adm2' from data source `C:\Users\USER\Desktop\R_data management\0518\TWN_adm2.shp' using driver `ESRI Shapefile'
## Simple feature collection with 22 features and 11 fields
## geometry type:  MULTIPOLYGON
## dimension:      XY
## bbox:           xmin: 116.71 ymin: 20.6975 xmax: 122.1085 ymax: 25.63431
## geographic CRS: WGS 84
##  [1] "ID_0"      "ISO"       "NAME_0"    "ID_1"      "NAME_1"    "ID_2"     
##  [7] "NAME_2"    "TYPE_2"    "ENGTYPE_2" "NL_NAME_2" "VARNAME_2" "geometry"

Exercise 4

Download all the files from github (click the downward triangle in the clone or download button in green) for flood in schools in Taipei to replicate the analysis with the markdown file included.

降雨頻率分析與淹水潛勢是洪災分析重要的資料來源,利用水文分析進行降雨觀測及淹水分析結果,進一步整合社會統計資料,可評估人類社會承受災害的潛在風險。

假設將24小時延時200年重現期降雨的淹水潛勢的深度達50cm以上的區域,定義為「潛在受災區」。

## OGR data source with driver: ESRI Shapefile 
## Source: "C:\Users\USER\Desktop\R_data management\0518\flood-in-school-master\flood50.shp", layer: "flood50"
## with 5103 features
## It has 5 fields
## OGR data source with driver: ESRI Shapefile 
## Source: "C:\Users\USER\Desktop\R_data management\0518\flood-in-school-master\tpecity_school.shp", layer: "tpecity_school"
## with 198 features
## It has 3 fields
## Integer64 fields read as strings:  STUDENTS

##     TEXTSTRING   ID STUDENTS
## 1     士林國中    1       95
## 2     士林國小    2       93
## 8     明德國中   33      113
## 9     文林國小   39      213
## 13    富安國小   48       63
## 26    士東國小  300       52
## 42    大湖國小  681       92
## 52    百齡國小  730      163
## 61    新湖國小  837       24
## 67    民生國中  849       35
## 72    中山國中  863      200
## 73    五常國中  864       91
## 74    五常國小  865       55
## 75    吉林國小  882       91
## 78    劍潭國小  903      204
## 80    蓬萊國小  913      119
## 81    雙蓮國小  915       24
## 82    日新國小  916      201
## 83    民權國中  917      186
## 84    大同國小  918       25
## 87    太平國小  924       91
## 89    大橋國小  926      161
## 91    華江國小  979       99
## 98    龍山國小 1051       87
## 100   仁愛國小 1059       56
## 101   仁愛國中 1060      133
## 106   長春國小 1085       48
## 119   永吉國中 1199      101
## 123   木柵國中 1247      118
## 124   國光劇校 1248       68
## 131   興隆國小 1276       63
## 134   建安國小 1287       43
## 138   忠孝國小 1306      152
## 149   雙園國小 1362      110
## 174   興福國中 1575       85
## 175   溪口國小 1576      168
##  Factor w/ 127 levels "101","102","103",..: 123 122 7 68 101 94 121 35 74 85 ...
## [1] 2645