mesh_line: Draw line segments between regional meshes

Description Usage Arguments Value

View source: R/line.R

Description

If mesh and mesh_to are both vectors, the line between mesh and mesh_to is drawn (using Bresenham's line algorithm). If mesh is a list, The path lines for each element in the mesh will be drawn.

Usage

1
mesh_line(mesh, mesh_to, close = FALSE, skip_na = FALSE)

Arguments

mesh

A mesh vector or a list of mesh vector.

mesh_to

A mesh vector.

close

Should the path of each element be closed when mesh is a list?

skip_na

Should skip the NA mesh and connects the paths? FALSE by default.

Value

A list of mesh class vectors.


japanmesh documentation built on Dec. 11, 2021, 9:36 a.m.