# Utilities for Japanese Mesh Code

Helpful functions for using mesh code (80km to 100m) data in Japan. Visualize mesh code using 'ggplot2' and 'leaflet', etc.

## Overview

The jpmesh package is a package that makes it easy to use "regional mesh (i.e. mesh code JIS X 0410 )" used in Japan from R. Regional mesh is a code given when subdividing Japanese landscape into rectangular subregions by latitude and longitude. Depending on the accuracy of the code, different regional mesh length. By using the same mesh in statistical survey etc., it will become possible to handle the survey results of a large area in the area mesh unit.

In jpmesh, mesh codes and latitude and longitude coordinates are compatible with mesh codes from the first region mesh, which is the standard region mesh, to the quarter regional mesh of the divided region mesh (from 80 km to 125 m). Features include "conversion from latitude and longitude to regional mesh", "acquisition of latitude and longitude from regional mesh", "mapping on prefecture unit and leaflet".

From CRAN

For developers

## Usage

### Convert mesh code to coordinate and vice versa

Return the latitude and longitude for specifying the mesh range from the mesh code.

Find the mesh code within the range from latitude and longitude.

### Utilies

Drawing a simplified Japanese map based on the mesh code.

Dataset of mesh code for prefectures.

meshcode geometry
513376 list(c(133.75, 133.875, 133.875, 133.75, 133.75, 34.58333, 34.58333, 34.66667, 34.66667, 34.58333))
513377 list(c(133.875, 134, 134, 133.875, 133.875, 34.58333, 34.58333, 34.66667, 34.66667, 34.58333))
523305 list(c(133.625, 133.75, 133.75, 133.625, 133.625, 34.66667, 34.66667, 34.75, 34.75, 34.66667))
523306 list(c(133.75, 133.875, 133.875, 133.75, 133.75, 34.66667, 34.66667, 34.75, 34.75, 34.66667))
523307 list(c(133.875, 134, 134, 133.875, 133.875, 34.66667, 34.66667, 34.75, 34.75, 34.66667))
523315 list(c(133.625, 133.75, 133.75, 133.625, 133.625, 34.75, 34.75, 34.83333, 34.83333, 34.75))

Example)

## Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

# jpmesh 1.1.1 (2018-06-26)

• Withdrawal from the tidyverse. Remove depends on stringr, tidyr and dplyr.
• Follow up the units package update.
• Fixed overlapped probrem (#20)

### New features

• `coarse_gather()`... Scale-down function #22

# jpmesh 1.1.0 (2018-02-25)

• Support units system (#15)
• Bug fixed (#13)
• All return mesh code should be character.
• Set sf object espg as `4326`.

## New features

• `is_meshcode()`, `is_corner()`... Predict meshcode format and positions for utility and certain.
• `rmesh()`...
• Rename `find_neighbor_mesh()` to `neighbor_mesh()` and separate features (not export functions).
• `export_meshes()`

# jpmesh 1.0.1 (2017-12-04)

• add vignettes 1: How to use mesh cord in R

## Bug fixes and minor improvements

• Fixed incorrect allocation of fine mesh code number (#8).
• Modified `eval_jp_boundary()` that internal function.
• Improved problem of giving mesh code outside of Japan (reopen #6).
• `fine_separate()`... Correct behavior when entering 1 km meshcode (#9).

# jpmesh 1.0.0 (2017-11-27)

• Consolidation of functions by integration and abolition. Rename of function name. Such as, argument order.
• You can now convert coordinates to 125m meshcode. As a result, it became to support to all meshcodes.
• Update Polygon Export Function (`export_mesh`)

# jpmesh 0.4.0 (2017-09-01)

• Using sf api.
• `jpnrect`... Japan Prefecture Mesh Data.
• `prefecture_mesh`
• Enhanced CI and coverage environment (#5).
• Fix some issues (#6).
• `pref_mesh()` replicate to `administration_mesh()`
• `find_neighbor_mesh()`... Find out neighborhood meshes.
• `mesh_rectangle()`... Output mesh rectange.

# jpmesh 0.3.0 (2016-11-12)

## New Features

• Mesh viewer as shiny gadgets (`mesh_viewer()`) #4
• Export mesh rectangle as geojson (`export_mesh()`) #3

# jpmesh 0.2.0

## New Features

• Added simple Japan grid datasets.

## Improve Infrastructures

• Making website by `pkgdown`.

# jpmesh 0.1.0

• Added a `NEWS.md` file to track changes to the package.

# Reference manual

install.packages("jpmesh")

2.0.1 by Shinya Uryu, 3 months ago

https://uribo.github.io/jpmesh/

Report a bug at https://github.com/uribo/jpmesh/issues/

Browse source code at https://github.com/cran/jpmesh

Authors: Shinya Uryu [aut, cre]

Documentation:   PDF Manual