Learn R Programming

tmap (version 0.6)

fit_polylines: Fit polylines through a set of spatial points

Description

This function fits one or more smooth polylines through a set of spatial points. (Experimental)

Usage

fit_polylines(..., id = NULL, min.dist = 10, max.opt.dist = 250,
  sep.dist = 5000, verbose = TRUE)

Arguments

...
Shape objects that contains the spatial points.
id
Name of the data variable that determines the classes of the points. For each class a polyline is fit. Is omitted, a polyline is fit through all points.
min.dist
Minimum distance. Poins that are closer than min.dist from any other point are omitted in the fitting method (see details below)
max.opt.dist
Maximal optimized distance. Between any two points that lie closer than max.opt.dist to each other, an edge is created in the fitting method (see details below)
sep.dist
Seperation distance. If the distance between two groups of points is larger than sep.dist, two seperate polylines are created.
verbose
Print logging text

Value

  • SpatialLinesDataframe