Published August 28, 2026 | Version v1.6

地域分析のためのRコード: 各コードの分野別一覧と利用シナリオ R Code for Regional Analysis: Field-Specific Directory and Utilization Scenarios

  • 1. ROR icon Nanzan University

Description

地域分析のためのRコード: 各コードの分野別一覧と利用シナリオ R Code for Regional Analysis: Field-Specific Directory and Utilization Scenarios

https://doi.org/10.5281/zenodo.20249186

作成日2026年5月17日

更新日2026年8月28日

概要

行政学・地方自治論の学部ゼミ(プロジェクト研究)の卒業研究(卒業論文)用のRコードを集約して、個別に紹介する文書である。2024年度に10名の3年生をゼミに受け入れ、2026年5月現在3年生14名、4年生14名の合計28名のゼミとなった。一期生は2026年3月に卒業し、大半が地方財政分析に取り組んだが、4名が地域空間分析(GIS)に関連する地方行政分析を行った。分析にはQGISやRを用い、ゼミ用のLMSには操作手順やRコードを掲載した。そのRコードを2026年4月から整備し、欧州の公的サーバーであるZenodoに掲載(doi取得)を始め、現在、24本のコードを掲載している。ゼミ生や一般のユーザーが利用しやすいように、筆者のホームページで一覧を掲載したが、見つけにくい場合があるので、本文書をPDFとしZenodoに公開し、doiを取得し広く頒布することにした。一覧のPDFのダウンロード(R Code for Regional Analysis_Field-Specific DirectoryRコード分野別一覧260828.pdf)また、ウェブ上でのデモを別契約のサーバーで集約し公開しました(その表紙 https://policyevaluation.net/)。

2026年度Q1プロジェクト研究IV(ゼミ)で、本リストを提示し、RStudioとRを用いたデータ分析を行った。本目録をプログラム教材として活用する初学者がスムーズに地域分析を開始できるよう、この2026年度ゼミ生向けに準備したR・RStudioの初期インストール、空間データの読み込みに不可欠な「作業フォルダ(Working Directory)の設定」、および基本的な操作手順を解説した簡易スターターマニュアルを本リポジトリに同梱している。(260528更新)PDFの一覧ファイルを更新し、新しいコードを追加し、動作デモサイトへのリンクも追加しました。

コードのジャンルの説明

本目録で公開している35本のRコードは、地方行政および地域政策の多様な課題に対応するため、以下の8つのジャンルに分類されている。

  • 1. 公共交通インフラとGTFSモデリング: 標準的な公共交通データ(GTFS)を用いたアクセシビリティ分析や、将来の路線網のシミュレーションを扱うシリーズ。
  • 2. 社会福祉とコミュニティ・インフラ: 子育て支援、医療、歴史的資源などの位置情報を活用し、身近な生活資源へのアクセシビリティを評価するシリーズ。
  • 3. 人口動態とモビリティ分析: 昼夜間人口比率や社会増減、将来推計人口メッシュや人流データから地域の「人の動き」を多角的に分析するシリーズ。
  • 4. 公共安全(防災)と主観的評価(PPGIS): 交通事故や洪水などの客観的リスクと、住民の愛着や災害伝承碑といった主観的・歴史的評価を地図上で重ね合わせるシリーズ。
  • 5. 文学景観と地域文化資産(行政オープンデータの可視化): 地域に点在する俳句碑や優れた文化的景観のオープンデータを収集し、衛星写真や画像と連携させてWeb地図上に可視化するシリーズ。
  • 6. プログラム評価と理論的枠組み: 政策や事業の論理構成図(ロジックモデル)をRStudio上で自動描画・HTML生成し、施策体系の視覚化を支援するツール群。
  • 7. 日本の地方財政分析のための専用Rモジュール群: 財政状況資料集の複数ファイルを集計しエクセルファイルにまとめ、元のデータフレームを基にggplot2で可視化する。
  • 8. データの見方と分析を体感するR Shinyアプリ・教材群: 分割表の度数をもとに独立性の検定とオッズ比で変数間の関連を評価するもの、画面上の指定または構文入力によってSEM(構造方程式モデリング)のモデル構造と実証分析を対話的に扱うものなどからなる。

利用シナリオ

本コード群を組み合わせた具体的な利用シナリオとして、地域公共交通の維持と災害時の要配慮者支援を連動させた地方行政分析が挙げられる。まず、将来推計人口メッシュと既存のバス停配置を重ね合わせるツール(https://doi.org/10.5281/ZENODO.20045301)を用いて居住実態と交通供給のミスマッチを精査し、交通サービス空白地帯の特定コード(https://doi.org/10.5281/ZENODO.19807856)によって運行見直しの優先エリアを割り出す 。その上で、クラウドから直接データをストリーミングして洪水浸水想定区域と福祉施設を重ね合わせる高度化プロトタイプ(https://doi.org/10.5281/zenodo.20192551)および災害伝承碑とハザードマップの統合可視化コード(https://doi.org/10.5281/zenodo.20237117)を活用することで、平時の通院・買い物移動を支えるデマンド交通等の新規路線設計シミュレーション(https://doi.org/10.5281/ZENODO.20130390)において、災害時の避難ルートや要配慮者施設の孤立リスクをあらかじめ組み込んだ、防災対応型の持続可能な公共交通網の再構築をシミュレーションすることが可能となる 。これらの分析結果を卒業研究の本論(分析結果)にまとめる。

生成AI(Gemini)の利用

本文書のRコードの整理と概要抽出は生成AI(GeminiおよびClaude)で行った。ウェブリンクの正確さや説明しているコードの機能の範囲は一通り筆者で確認している。なお、上述のRコード利用のシナリオにおいて、コードの対象自治体を変更する場合は、Gemini等の生成AIを利用すると便利である。

分野別Rコード一覧

 1. 公共交通インフラとGTFSモデリング

公共交通の現状分析から、将来の路線設計(シナリオ・モデリング)までを扱うシリーズです。

  • Interactive Scenario Modeling of Public Transport Infrastructure using Leaflet and GTFS (V3)
    • 概要: GTFSデータを地図上に可視化し、ブラウザ上で新規路線やバス停を直接描き込み、将来の交通網をシミュレーションできる対話型ツール(応用版)。
    • https://doi.org/10.5281/ZENODO.20130390
  • Interactive Flow Mapping of Public Transport Infrastructure using Leaflet and GTFS Data (V2)
    • 概要: GTFSデータの運行頻度に基づき、路線の「太さ」を変えて供給力を可視化するインタラクティブな流線図(基本機能)。
    • https://doi.org/10.5281/ZENODO.20116368
  • Identifying and Visualizing Public Transport Service Gaps
  • Interactive Visualization of Projected Population Mesh and Bus Stop Placement using Leaflet and GSI Tiles
    • 概要 : 本リポジトリは、統計的な実績・推計人口(面データ)と公共交通インフラ(点データ)を地図上に重ね合わせ、地域における公共交通の供給状況を客観的に把握・分析するためのRスクリプトを公開するものである。事例として愛知県一宮市の1kmメッシュ人口データとバス停配置データを地図上に展開し、国土地理院の地図タイルを背景として詳細な都市構造をブラウザ上で探索できる。
    • https://doi.org/10.5281/ZENODO.20045301
  • Mapping Population and Bus Stops using Open Data with Leaflet
  • Interactive Mapping of Public Transport Infrastructure using Leaflet
    • 概要: Rを用いて公共交通のネットワーク(バス停)をWeb地図上にインタラクティブに描画するための標準的なテンプレート。(v3.0)
    • https://doi.org/10.5281/ZENODO.19809487
  • Lightweight and Robust Visualization of GTFS Realtime Public Transit Data

  • Integrated Route Mapping and Multi-Agency Spatiotemporal Simulation Using GTFS Static Data 

    • 概要: 静的GTFSデータを用い、知多市・東浦町の複数事業者を対象とした統合的路線マッピングと動的空間運行シミュレーションを実装。 

    • https://doi.org/10.5281/zenodo.20070687

      • このdoiは各版の共通もの(最新版が必ず表示される。)。V3.8で一分間隔のアニメーション化とgeojson形式へのエクスポートに対応した。Shinyを用いた出力はかなり見栄えが良く、このリストのコードの中では最もダウンロードされている(2026年5月23日現在)。
    • webでのデモ版    https://moteki.shinyapps.io/transit_chita/ 5事業者版 https://moteki.shinyapps.io/transit_chita5/

2. 社会福祉とコミュニティ・インフラ

生活に身近な資源のアクセシビリティを評価するシリーズです。

  • Geocoding via tidygeocoder and ArcGIS API to Visualize Aichi Prefecture Childcare Support Program Shops in Toyohashi City
    • 概要: 豊橋市の子育て応援事業所の住所情報をジオコーディングし、地図上に展開して支援の広がりを可視化。tidygeocoder パッケージと ArcGIS API を活用し、豊橋市の子育て応援事業所の住所情報を高精度にジオコーディング。地図上に展開して支援資源の地理的分布を可視化するコード。
    • https://doi.org/10.5281/ZENODO.20153106
  • Visualizing Gifu Prefecture Open Data "Cultural Properties Protection Center Temple Map (CSV)" using Leaflet
  • Accessibility to Internal Medicine Hospitals and Clinics in Seto City (500m Buffer)
  • Voronoi-based Service Area Analysis of Internal Medicine Hospitals and Clinics in Seto City
  • Three KML Files into Analytical GIS Data for Gifu Natural Parks

3. 人口動態とモビリティ分析

地域の「人の動き」を多角的に分析・可視化するシリーズです。

  • Day-Night Population Ratio by Municipality in Aichi Prefecture
  • Out-migration/In-migration Ratio by Municipality in Aichi Prefecture
  • Interactive Visualization of Future Population Projection Mesh Data with Leaflet
  • Visualizing Open Human Mobility Data with Leaflet
    • 概要: 匿名化されたオープン人流データを活用し、特定エリア内の流動性をLeafletでアニメーション表示・解析する手法。
    • https://doi.org/10.5281/ZENODO.19976728

4. 公共安全(防災)と主観的評価(PPGIS)

リスクの可視化や住民の心理的評価を扱う先進的なシリーズです。

  • A Risk Visualization Prototype using NPA Traffic Accident Open Data (FY2021)
  • Leaflet-based Mapping of Geotagged Photos for Place Attachment Assessment (PPGIS Prototype)
    • 概要: 住民が撮影した位置情報付き写真(ジオタグ写真)を地図上にマッピングし、地域への愛着や価値を評価する試作ツール。
    • https://doi.org/10.5281/ZENODO.20122417
  • ★ Visualizing MLIT Flood Hazard Maps and Welfare Facilities in Toyohashi City via Direct Data Streaming
    • 概要 : 本コードは、国土交通省の洪水浸水想定区域データと豊橋市内の社会福祉施設データをクラウドから直接ストリーミングして重ね合わせ、データファイルの事前ダウンロードを一切要さずに災害リスクと要配慮者施設の位置関係をWeb地図上に可視化できる、RStudioの初学者にも好適な防災分析プロトタイプである。

    •  https://doi.org/10.5281/zenodo.20192551

      • *これはデータファイルのダウンロード不要なので、RStudioの学習の最初に好適です。
  • Interactive Mapping of Disaster Monuments in Aichi and Gifu Overlaid on Integrated Public Flood Hazard Maps
    • 概要 : 愛知県・岐阜県内に点在する災害伝承碑(自然災害伝承碑データ等)の位置情報と、公的な洪水ハザードマップ(浸水想定区域)をWeb地図上で統合的に重ね合わせるコード。過去の災害の記憶・教訓と現代のリアルなリスク情報を可視化し、地域の防災意識を高めるためのプロトタイプ。
    • https://doi.org/10.5281/zenodo.20237117
    • webでのデモ版 https://moteki.shinyapps.io/bosai_monuments_hazardmap/
  • R Code for Regional Analysis: A Visualization Prototype of MOJ Registry Office Maps Using Leaflet – A Case Study of Chita City
    • 概要: 法務省が公開している登記所備付地図データ(法14条地図など)を切り出し、Leafletを用いて知多市の特定の筆や境界構造をWeb地図上で探索・確認できるようにした、土地利用・公共安全管理のための可視化プロトタイプ。

    • https://doi.org/10.5281/zenodo.20201920
  • Standalone Grid-Mesh Decoding Template and Algorithmic Diversity Index Paradigm for Avian Distribution and Diversity Survey
    • 概要:  本プロトタイプは、環境省の鳥類繁殖分布調査オープンデータを対象に、外部境界データに依存せず6桁標準地域メッシュを数理デコードしてLeaflet地図上に可視化するR言語の軽量テンプレートである。情報理論を応用した「逆メッシュ頻度(IMF)」により、普通種のノイズを排してメッシュごとの生態学的希少度スコアを自動計算する。ポップアップから最希少種のGoogle画像検索へダイレクトに連携する機能を備え、重いGISパッケージや画像ソースを必要としない効率的なデータ探索を実現している。
    • https://doi.org/10.5281/zenodo.20269081
    • webでのデモ版 https://moteki.shinyapps.io/avian_diversity/

5. 文学景観と地域文化資産(行政オープンデータの可視化)

  • R Code for Regional Analysis: Using Public Open Data to Visualize Ozaki Hosai Haiku Monuments in Tottori City with Leaflet and GSI Satellite Imagery
  • R Code for Regional Analysis: Interactive Mapping and Cultural Landscape Visualization Using Fukui Furusato Hyakkei Public Open Data CSV with Image URLs
    • 概要 : 「福井ふるさと百景」のオープンデータ(CSV)を活用し、地域の優れた文化的景観やおすすめスポットをLeaflet上にインタラクティブにマッピングするコード。ポップアップ内に画像URLのリンクを組み込むことで、現地の視覚的イメージ(景観)を地図上で直感的に体感・分析できる実装例。
    • https://doi.org/10.5281/zenodo.20236496 
    • webでのデモ版  https://moteki.shinyapps.io/fukui100/
  • Visualizing World Heritage Sites and Historic Trails with Leaflet 
    • 概要: 日本の世界遺産(構成資産・史跡)および参詣道・歴史的街道を、Leafletを用いて可視化する。 Leafletによって可視化したインタラクティブなウェブマップを表示する。参加型GIS(PPGIS)への応用が可能な軽量かつスタンドアロンの教育用ツールとして機能し、検索リンクを含むポップアップで概要表示をするなど学術的なインターフェースを特徴としています。
    • https://doi.org/10.5281/zenodo.20288822

6. プログラム評価と理論的枠組み

施策の論理構成を整理・視覚化するための支援ツールです。

  • R Code Template for Logic Model Generation using DiagrammeR
    • 概要: DiagrammeRパッケージを用いて、学術的・実務的な施策体系図をRStudio上で自動描画するためのテンプレート(基本版)。
    • https://doi.org/10.5281/zenodo.19772400
  • R Code Template for Logic Model HTML Generation using DiagrammeR
    • 概要: 政策や事業の論理構成図(ロジックモデル)をHTML形式で動的に生成し、Webブラウザで閲覧可能にする(上の基本版の派生)。
    • https://doi.org/10.5281/zenodo.19812061

7. 日本の地方財政分析のための専用Rモジュール群

  • R Code for Regional Analysis: 10-Year Data Compilation for Japanese Municipal Finance
    • 概要: 日本の地方財政のための10年データ自動コンパイラ。構造化されていないオープンソースのスプレッドシート(「財政状況資料集」のExcel等)から、10年分の自治体財政データセットを縦断的に抽出・テキスト正規化・標準化を自動化するために設計された高度なデータパイプライン。教育上の効果を考えてモジュール化された本ソフトウェアは、公共セクターのマクロな可視化と、二次的な学術分析に対応した生のマイクロデータの即応性(データ・レディネス)との間のギャップを埋めるものである。

    • DOI: https://doi.org/10.5281/zenodo.20258441

  • Automated Visualization and Image Export Using ggplot2 and patchwork

    • 概要: 地方財政の可視化・画像エクスポートモジュール。前掲のデータ処理コードの利用後に、各財政指標のグラフ化とファイル保存を行うRスクリプトである。ggplot2 と patchwork を活用したこの可視化モジュールは、処理済みの自治体財政データセットを論文・報告書品質の個別チャートや包括的な多指標ダッシュボードへと動的に変換し、厳格な美観の標準化と二次分析の再現性を保証する。
    • DOI: https://doi.org/10.5281/zenodo.20262665

  • R Code for Regional Analysis: A Shiny Tool for Identifying Similar Municipalities in Local Government Finance

8. データの見方と分析を体感するR Shinyアプリ・教材群

  • Interactive Tool for 2x2 Crosstabulation, Independence Testing, and Mosaic Plot Generation2×2 クロス集計とモザイク図による統計的要因分析ツール
    • 概要: クロス集計を用いて、質的データにおける「二変数間の関係」を検討・分析するためのアプリである。分割表に数値を入力するだけで「カイ二乗検定(独立性の検定)」を自動で実行し、変数の関連性やデータの偏りを面積で表現した「モザイク図」を即座に作成する。また、関連の強さを測る指標としてオッズ比の算出にも対応しており、「稀な事象の仮定」が成立する状況下での解釈について視覚的に学べる工夫を施している。公共政策や社会科学において、二変数間の相関や因果を客観的に見極めるエビデンス(証拠)の評価能力を養うための教材である。
    • DOI: https://doi.org/10.5281/zenodo.20474808

    • Webでのデモ版: https://moteki.shinyapps.io/crosstab/

  • Structural Equation Modeling: Model Specification and Syntax Generation for Methodological Understanding 構造方程式モデリング(SEM)におけるモデル構造理解と構文(Syntax)自動生成のためのRモジュール
    •  概要: 構造方程式モデリング(SEM)の基礎となる因果関係の仕組みを学ぶための学習用教材である。画面上で変数の数などを選択することで、対応するモデル図(パス図)の描画と、R用の「解析構文(Syntax)」が同時に自動生成される。図と構文の対応関係を視覚的に把握しながら、変数間の「直接効果」と「間接効果」のロジックを直感的に理解できる仕様となっている。後述の実際のSEM分析アプリでデータ分析を行う前に、SEMという手法そのものへの理解を高めるための強力なステップとなる。
    • DOI: https://doi.org/10.5281/zenodo.20650805

    • Webでのデモ版: https://moteki.shinyapps.io/sem_model/

    • 英語対応版デモ: https://moteki.shinyapps.io/sem_model/

  • Interactive Structural Equation Modeling (SEM) and Path Analysis Visualization Tool 構造方程式モデリング(SEM)の分析実行とパス解析可視化ツール
    • 概要: 複数の変数間に存在する複雑な因果関係を、ブラウザ上で分析・可視化できるアプリである。データをアップロードし、解析構文(Syntax)を入力・指定することで「構造方程式モデリング(SEM)」を実行し、モデル適合度の判定や「パス図」の出力を自動で行う。前項の教材コードで学んだモデル図と構文の関係、および直接効果・間接効果の理解をベースに、実際のデータを用いて画面上でより実践的に検証するための土台となる。

    • DOI: https://doi.org/10.5281/zenodo.20621365

    • Webでのデモ版: https://moteki.shinyapps.io/sem_mediation/

[English]

R Code for Regional Analysis: Field-Specific Directory and Utilization Scenarios

https://doi.org/10.5281/zenodo.20249187

Date of creation: May 17, 2026
Last updated: August 28, 2026

Abstract

This document is a catalogue of the R source code written for graduation research (senior theses) in an undergraduate seminar on administrative science and local government studies. The seminar admitted ten third-year students in the 2024 academic year and, as of May 2026, has 28 members: 14 third-year and 14 fourth-year undergraduates. The first cohort graduated in March 2026; most of them worked on local fiscal analysis, while four carried out administrative analyses using geographic information systems (GIS) and spatial data. QGIS and R were used throughout, and the operating procedures and code were kept on the seminar's learning management system (LMS). Since April 2026 this code has been revised and deposited in Zenodo, the European open repository, so that each item carries a DOI; the first 24 items were published in that first phase, and the directory now lists 35. A list was also placed on the author's website, but it proved hard to find, so this document is published here as a PDF with its own DOI.

Download the directory (PDF): R Code for Regional Analysis_Field-Specific DirectoryRコード分野別一覧260828.pdf

Live web demonstrations: A selection of the applications runs on a separate server. Portal: https://policyevaluation.net/

This directory was used in the FY2026 Q1 seminar ("Project Research IV"), in which students analysed data with R and RStudio. For beginners who use the directory as a programming textbook, the repository also includes a short starter manual written for those students: installing R and RStudio, setting the working directory (which matters for loading spatial data), and the basic operations.

Classification of R Code Domains

The 35 R source codes in this directory fall into eight domains, chosen to cover the range of problems that come up in public policy and local administration.

  1. Public transport infrastructure and GTFS modelling. Accessibility analysis using General Transit Feed Specification (GTFS) data, and simulation of future transit networks.
  2. Social welfare and community infrastructure. Accessibility to everyday resources, mapped from the locations of childcare support facilities, healthcare institutions and historical assets.
  3. Demographics and mobility. Regional movement seen from several angles: daytime-to-nighttime population ratios, net migration, 500 m mesh population projections and human flow data.
  4. Public safety (disaster prevention) and public participation GIS (PPGIS). Objective risk — traffic accident open data, flood hazard maps — overlaid with subjective and historical assessments, including geotagged photographs contributed by residents and disaster monuments.
  5. Literary landscapes and regional cultural assets (visualising public open data). Open data on haiku monuments and scenic landscapes, mapped interactively alongside satellite imagery and photographs.
  6. Program evaluation and theoretical frameworks. Tools that draw logic models in RStudio or generate them as HTML, using the DiagrammeR package.
  7. R modules for Japanese local finance. Modules that aggregate the multiple files of the Local Government Financial Status Documents into a single Excel file, and plot the trends with ggplot2 from the underlying data frames.
  8. R Shiny applications and teaching materials for data interpretation and analysis. Independence testing and odds ratios from contingency tables; logistic regression; propensity scores; structural equation modelling specified on screen or by syntax; and the slide decks for the fourteen-session course that uses them.

Utilization Scenario

One scenario that combines several of these codes is an analysis linking the sustainability of regional public transport with assistance for vulnerable residents during a disaster. The mismatch between where people live and where transit is supplied can be examined with the tool that overlays population projection meshes on current bus stop placements (https://doi.org/10.5281/zenodo.20045301), and priority areas for revising services can be identified with the service gap detection code (https://doi.org/10.5281/zenodo.19807856). From that baseline, the prototype that streams cloud data to intersect welfare facilities with official flood hazard zones (https://doi.org/10.5281/zenodo.20192551), together with the code that maps disaster monuments alongside hazard maps (https://doi.org/10.5281/zenodo.20237117), lets planners anticipate evacuation constraints and the risk of isolation. The result can then be carried into a simulation of demand-responsive routes (https://doi.org/10.5281/zenodo.20130390) that serve both daily mobility and emergency preparedness. Findings of this kind form the empirical core of a senior thesis.

Use of Generative AI

The organisation of the source code and the drafting of the summaries in this document were carried out with the assistance of generative AI (Google Gemini and Anthropic Claude). The web links and the described functional scope of each code have been checked by the author. Generative AI is also useful when adapting the scenario above to a different municipality.

1. Public Transport Infrastructure and GTFS Modelling

Accessibility analysis of existing services through to the design of future networks.

Interactive Scenario Modelling of Public Transport Infrastructure using Leaflet and GTFS (V3)
Description: An interactive tool that maps GTFS data and lets the user draw new routes and stops in the browser to simulate a future network.
DOI: https://doi.org/10.5281/zenodo.20130390

Interactive Flow Mapping of Public Transport Infrastructure using Leaflet and GTFS Data (V2)
Description: A flow map that shows capacity by varying line thickness with the service frequency recorded in GTFS.
DOI: https://doi.org/10.5281/zenodo.20116368

Identifying and Visualizing Public Transport Service Gaps
Description: Identifies areas that transit does not reach, from the spatial relationship between population distribution and stop locations.
DOI: https://doi.org/10.5281/zenodo.19807856

Interactive Visualization of Projected Population Mesh and Bus Stop Placement using Leaflet and GSI Tiles
Description: Overlays projected population (polygons) on transit infrastructure (points) to examine the supply of services against where people live. Ichinomiya City, Aichi Prefecture, is used as the case, with Geospatial Information Authority of Japan tiles as the base layer.
DOI: https://doi.org/10.5281/zenodo.20045301

Mapping Population and Bus Stops using Open Data with Leaflet
Description: A basic implementation for mapping open data on population and bus stops with Leaflet.
DOI: https://doi.org/10.5281/zenodo.20016119

Interactive Mapping of Public Transport Infrastructure using Leaflet
Description: A template for drawing transit networks on a web map in R.
DOI: https://doi.org/10.5281/zenodo.19809487

Lightweight and Robust Visualization of GTFS Realtime Public Transit Data
Description: A visualization framework for GTFS Realtime data, with worked cases from Toei Bus and Chita City's Aiai Bus.
DOI: https://doi.org/10.5281/zenodo.20278677

Integrated Route Mapping and Multi-Agency Spatiotemporal Simulation Using GTFS Static Data
Description: Integrated route mapping and dynamic operational simulation from static GTFS, covering several operators across Chita City and Higashiura Town. The DOI resolves to the latest version; version 3.8 added one-minute interval animation and export to GeoJSON.
DOI: https://doi.org/10.5281/zenodo.20070687

2. Social Welfare and Community Infrastructure

Accessibility to the resources of everyday life.

Geocoding via tidygeocoder and the ArcGIS API to Visualize Childcare Support Program Shops in Toyohashi City
Description: Geocodes the addresses of childcare support shops with the tidygeocoder package and the ArcGIS API, and maps the distribution of these welfare resources.
DOI: https://doi.org/10.5281/zenodo.20153106

Visualizing Gifu Prefecture Open Data "Cultural Properties Protection Center Temple Map (CSV)" using Leaflet
Description: Maps the distribution of temples from CSV open data published by the Gifu Prefecture Cultural Properties Protection Center.
DOI: https://doi.org/10.5281/zenodo.20151486
Web Demo: https://moteki.shinyapps.io/gifu-temples/

Accessibility to Internal Medicine Hospitals and Clinics in Seto City (500 m Buffer)
Description: Shows the area within 500 m walking distance of internal medicine institutions in Seto City.
DOI: https://doi.org/10.5281/zenodo.20022231

Voronoi-based Service Area Analysis of Internal Medicine Hospitals and Clinics in Seto City
Description: Draws Voronoi catchment areas for the same institutions.
DOI: https://doi.org/10.5281/zenodo.20158122

Integrating Three KML Files into Analytical GIS Data for Gifu Natural Parks
Description: Combines three KML sources — ordinary zones, special zones and special protection zones — into a single analytical dataset for the natural parks of Gifu Prefecture.
DOI: https://doi.org/10.5281/zenodo.20299714
Web Demo: https://moteki.shinyapps.io/gifu-natural-parks/

3. Demographics and Mobility Analysis

Regional movement seen from several angles.

Day-Night Population Ratio by Municipality in Aichi Prefecture
Description: Calculates the daytime-to-nighttime population ratio for each municipality, showing whether an area is chiefly residential or a destination for commuting.
DOI: https://doi.org/10.5281/zenodo.20030957

Out-migration and In-migration Ratio by Municipality in Aichi Prefecture
Description: Net migration by municipality, as a comparison of regional drawing power.
DOI: https://doi.org/10.5281/zenodo.20031222

Interactive Visualization of Future Population Projection Mesh Data with Leaflet
Description: Explores and compares 500 m mesh population projections on the map.
DOI: https://doi.org/10.5281/zenodo.19806460

Visualizing Open Human Mobility Data with Leaflet
Description: Animates movement within an area from anonymised open human flow data.
DOI: https://doi.org/10.5281/zenodo.19976728

4. Public Safety (Disaster Prevention) and Public Participation GIS (PPGIS)

Objective risk alongside the assessments residents make themselves.

A Risk Visualization Prototype using NPA Traffic Accident Open Data (FY2021)
Description: Highlights locations of high accident risk from National Police Agency open data.
DOI: https://doi.org/10.5281/zenodo.20117974

Leaflet-based Mapping of Geotagged Photos for Place Attachment Assessment (PPGIS Prototype)
Description: Maps geotagged photographs taken by residents, as a way of assessing attachment to place.
DOI: https://doi.org/10.5281/zenodo.20122417

★ Visualizing MLIT Flood Hazard Maps and Welfare Facilities in Toyohashi City via Direct Data Streaming
Description: Streams flood inundation zone data from the Ministry of Land, Infrastructure, Transport and Tourism and overlays it on the locations of welfare facilities in Toyohashi City. Because nothing has to be downloaded first, this is a good starting point for someone learning RStudio.
DOI: https://doi.org/10.5281/zenodo.20192551

Interactive Mapping of Disaster Monuments in Aichi and Gifu Overlaid on Public Flood Hazard Maps
Description: Places disaster monuments scattered across the two prefectures on official flood hazard maps, so that the record of past disasters can be read against present risk.
DOI: https://doi.org/10.5281/zenodo.20237117

A Visualization Prototype of MOJ Registry Office Maps Using Leaflet: Chita City
Description: Extracts parcel boundaries from the Ministry of Justice registry maps (Article 14 maps) and displays them in the browser, for land use analysis and public safety work.
DOI: https://doi.org/10.5281/zenodo.20201920

Standalone Grid-Mesh Decoding Template and Diversity Index for Avian Distribution Survey Data
Description: Decodes six-digit standard regional mesh codes to map bird populations from the Ministry of the Environment's Breeding Bird Distribution Survey, without external boundary files. An inverse mesh frequency measure filters out common species and gives each cell a rarity score; pop-ups link to an image search for the rarest species found there.
DOI: https://doi.org/10.5281/zenodo.20269081
Web Demo: https://moteki.shinyapps.io/avian_diversity/

5. Literary Landscapes and Regional Cultural Assets (Visualising Administrative Open Data)

Visualizing Haiku Monuments in Mie Prefecture with Leaflet and GSI Satellite Imagery
Description: Maps the haiku monuments of Mie Prefecture from prefectural open data onto orthophotos, so that the spread of this cultural landscape can be seen.
DOI: https://doi.org/10.5281/zenodo.20219609
Web Demo (GPS-enabled): https://moteki.shinyapps.io/mie_kuhi_gps/

Visualizing the Ozaki Hosai Haiku Monuments in Tottori City with Leaflet and GSI Satellite Imagery
Description: Maps the monuments to the poet Ozaki Hosai within Tottori City, following his footsteps geographically.
DOI: https://doi.org/10.5281/zenodo.20221728
Web Demo: https://moteki.shinyapps.io/tottori_hosai_gps/

Interactive Mapping of the Fukui Furusato Hyakkei Open Data, with Image URLs
Description: Maps the scenic landscapes of the Fukui Furusato Hyakkei list from the published CSV, with photographs linked from the pop-ups.
DOI: https://doi.org/10.5281/zenodo.20236496
Web Demo: https://moteki.shinyapps.io/fukui100/

Visualizing World Heritage Sites and Historic Trails with Leaflet
Description: A standalone web map of Japan's World Heritage sites and historic trails, with search links from each entry.
DOI: https://doi.org/10.5281/zenodo.20288822

6. Program Evaluation and Theoretical Frameworks

Tools for setting out the logical structure of a policy or project.

R Code Template for Logic Model Generation using DiagrammeR
Description: Draws policy framework diagrams inside RStudio with the DiagrammeR package.
DOI: https://doi.org/10.5281/zenodo.19772400

R Code Template for Logic Model HTML Generation using DiagrammeR
Description: Generates the same logic models as HTML, viewable in any browser.
DOI: https://doi.org/10.5281/zenodo.19812061

7. R Modules for Japanese Municipal Finance Analysis

Ten-Year Data Compilation for Japanese Municipal Finance
Description: Extracts, normalises and standardises fiscal indicators from ten years of the Annual State of Municipal Finance spreadsheets. The pipeline is deliberately modular so that each step can be followed.
DOI: https://doi.org/10.5281/zenodo.20258441

Automated Visualization and Image Export Using ggplot2 and patchwork
Description: The companion script to the compiler above. It renders the processed indicators as individual charts and as multi-indicator dashboards, and exports them as image files.
DOI: https://doi.org/10.5281/zenodo.20262665

A Shiny Tool for Identifying Similar Municipalities in Local Government Finance
Description: Reads the official Similar Municipality Classification Table and returns the peer municipalities for a given name, which is where comparative work in public finance usually begins.
DOI: https://doi.org/10.5281/zenodo.20387193
Web Demo: https://moteki.shinyapps.io/ruidan_finance4/

8. R Shiny Applications and Educational Materials for Data Interpretation and Analysis

Interactive Tool for 2×2 Crosstabulation, Independence Testing and Mosaic Plot Generation
Description: Examines the relationship between two categorical variables. Entering the four cell counts runs a chi-square test of independence and draws a mosaic plot in which area carries the association; the odds ratio is given as a measure of strength, with the rare event assumption made visible.
DOI: https://doi.org/10.5281/zenodo.20474808
Web Demo: https://moteki.shinyapps.io/crosstab/

Interactive Structural Equation Modelling (SEM) and Path Analysis Visualization Tool
Description: Analyses causal networks among several variables. The user uploads a dataset and gives the analysis syntax; the application fits the model, reports the fit indices and draws the standardised path diagram.
DOI: https://doi.org/10.5281/zenodo.20621365
Web Demo: https://moteki.shinyapps.io/sem_mediation/

Statistics for Policy Science: Slide Decks for a Fourteen-Session Course, with a Catalogue of the Materials
Description: The slide decks for a fourteen-session course of 100-minute classes that uses the statistics applications and materials listed above. Ten English lecture decks are bundled in a dated ZIP, together with a one-page outline giving the fourteen sessions, the materials each uses, and the DOI where each is published. This record is a catalogue and a copy of those materials; the authoritative version of each session is in the Zenodo record for that code.
DOI: https://doi.org/10.5281/zenodo.22120571

Files

R_Code_for_Regional_Analysis_Field-Specific_DirectoryRコード分野別一覧260828.pdf

Additional details

Related works

Continues
Software: 10.5281/zenodo.20237117 (DOI)

Software

Programming language
R