plot_segments: Plot segments

View source: R/standard_curve.R

plot_segmentsR Documentation

Plot segments

Description

Plot segments

Usage

plot_segments(x, grid = FALSE, title = FALSE, closed = FALSE, ...)

Arguments

x

A two-column matrix of coordinates of points.

grid

Whether to add grid lines on the plot?

title

The value should be FALSE or a string.

closed

Whether the curve is closed?

...

Other arguments passed to sfc_grob().

Details

This function is only for a quick demonstration of curves represented as two-column coordinate matrices.

Value

No value is returned.

Examples

pos = cbind(c(0, 0, 1, 1, 2, 2, 3, 3, 2, 2, 1, 1),
            c(1, 2, 2, 3, 3, 2, 2, 1, 1, 0, 0, 1))
plot_segments(pos)

sfcurve documentation built on Sept. 14, 2024, 1:07 a.m.