Learn R Programming

kuniezu (version 0.1.3)

move_jpn_rs: Clip and move some geometries for mapping

Description

Move geometry differently from the real-life arrangement for mapping. When displaying a map showing Japan, the southern islands are sometimes moved. To achieve this, we need to perform false operations on the geometry.

Usage

move_jpn_rs(data, clip = TRUE)

Arguments

data

sf that records the prefecture or municipality of Japan

clip

An option to hide isolated island that are separated from other geometry and have a small area.

Value

sf. Geometry in Tokyo may have rows duplicated in Honshu and islands.

Examples

Run this code
# NOT RUN {
require("sf")
move_jpn_rs(jgd2011_bbox)
# }

Run the code above in your browser using DataLab