This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pacman::p_load( | |
sf, | |
estatapi, | |
tidyverse) | |
appId <- "*************************************" | |
res <- estat_getStatsData( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pacman::p_load( | |
openxlsx, | |
tidyverse, | |
sf, | |
rmapshaper) | |
URL <- "https://www.soumu.go.jp/main_content/000892857.xlsx" | |
RATIO <- read.xlsx(URL, colNames = FALSE) |> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pacman::p_load( | |
tidyverse, | |
reshape2, | |
DescTools) | |
### GitHubからデータファイル読み込み | |
### Gini係数と信頼区間の表を作成 | |
File <- "https://raw.githubusercontent.com/igproj-fusion/DemographicData/main/pop47census_1920_2020.csv" | |
df <- read.csv(File) |> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(ggthemes) | |
library(dplyr) | |
library(sf) | |
library(reshape2) | |
popURL <- "https://raw.githubusercontent.com/igproj-fusion/population/main/pop47_20220101.csv" | |
pop47 <- read.csv(popURL, header = TRUE) |> | |
filter(city == "-") |> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################## | |
# | |
# plot Observed.csv | |
# | |
########################################################## | |
if (!require("pacman")) { | |
install.packages("pacman")} | |
pacman::p_load( | |
tidyverse, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####################################################################### | |
# | |
# 国土数値情報ダウンロードサイト | |
# TOP > 国土数値情報 > 行政区域データ | |
# https://nlftp.mlit.go.jp/ksj/gml/datalist/KsjTmplt-N03-v3_1.html | |
# | |
# 全国 N03-20230101_GML.zip | |
# unzip後のパス:"N03-20230101_GML/N03-23_230101.geojson" | |
# | |
####################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!require("pacman")) { | |
install.packages("pacman")} | |
pacman::p_load( | |
surveillance, | |
lubridate, | |
tidyr, | |
ggplot2, | |
dplyr, | |
gcookbook, | |
cowplot, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################################################################### | |
# | |
# G空間情報センター/植生調査(1/25,000縮尺) | |
# https://www.geospatial.jp/ckan/dataset/biodic-vege-25000 | |
# | |
##################################################################### | |
if (!require("pacman")) { | |
install.packages("pacman")} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################################### | |
# | |
# 千葉県南部&東方沖地震のM-T図と震源マップ作製 | |
# | |
# データソース: | |
# 震源データベースと震源マップ(リアルタイム版) | |
# http://agora.ex.nii.ac.jp/earthquake/hypocenter/ | |
# | |
#################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################################################################### | |
# | |
# YAHOO!JAPAN 天気・災害 | |
# | |
# 千葉県東方沖 地震時系列 | |
# https://typhoon.yahoo.co.jp/weather/jp/earthquake/list/?e=473 | |
# | |
# 千葉県南部 地震時系列 | |
# https://typhoon.yahoo.co.jp/weather/jp/earthquake/list/?e=342 | |
# |