powered by
Plot segments
plot_segments(x, grid = FALSE, title = FALSE, closed = FALSE, ...)
No value is returned.
A two-column matrix of coordinates of points.
Whether to add grid lines on the plot?
The value should be FALSE or a string.
FALSE
Whether the curve is closed?
Other arguments passed to sfc_grob().
sfc_grob()
This function is only for a quick demonstration of curves represented as two-column coordinate matrices.
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)
Run the code above in your browser using DataLab