在 R 視覺化地理空間資料
Charlotte Wickham
Assistant Professor at Oregon State University
ggplot2 相同理念:ggplot2 期望資料在 data frame,tmap 期望資料為空間物件library(tmap) data(Europe)tm_shape(Europe) +tm_borders()

library(tmap) data(Europe)tm_shape(Europe) +tm_borders() + tm_fill(col = "part")
tm_fill()tm_borders()tm_polygons()tm_bubbles()tm_dots()tm_lines()tm_raster()tm_text()library(tmap) data(Europe)tm_shape(Europe) +tm_borders() + tm_fill(col = "part") + tm_compass() + tmap_style("cobalt")

scale_ 對應;比例調整在各自的圖層函式中設定tm_shape() 定義後續各層的預設資料;同一張圖可有多個 shapex、y 映射,空間物件本身已含座標在 R 視覺化地理空間資料