Structure of Combined Fude Polygon Data with Agricultural Community Boundary Data
Source:vignettes/articles/additional.Rmd
additional.Rmd
Structure of Combined Fude Polygon Data with Agricultural Community Boundary Data
There are 7 types of objects obtained by combine_fude()
,
as follows:
names(db)
## [1] "fude" "fude_split" "community" "community_union"
## [5] "ov" "lg" "pref"
The possible values for community
in
combine_fude()
can be listed as follows.
library(dplyr)
library(data.tree)
library(ggplot2)
b[[1]] |>
filter(grepl("松山", KCITY_NAME)) |>
mutate(pathString = paste(PREF_NAME, CITY_NAME, KCITY_NAME, RCOM_NAME, sep = "/")) |>
data.tree::as.Node() |>
print(limit = 10)
## levelName
## 1 愛媛県
## 2 °--松山市
## 3 °--松山市
## 4 ¦--土居田
## 5 ¦--針田
## 6 ¦--小栗第1
## 7 ¦--小栗第2
## 8 ¦--小栗第3
## 9 ¦--藤原第1
## 10 °--... 102 nodes w/ 0 sub
ggplot(data = b[[1]] |> filter(grepl("松山", KCITY_NAME))) +
geom_sf(fill = NA) +
geom_sf_text(aes(label = RCOM_NAME), size = 2, family = "Hiragino Sans") +
theme_void()
出典:農林水産省「筆ポリゴンデータ(2022年度公開)」および「農業集落境界データ(2022年度)」を加工して作成。