View source: R/standard_curve.R
plot_segments | R Documentation |
Plot segments
plot_segments(x, grid = FALSE, title = FALSE, closed = FALSE, ...)
x |
A two-column matrix of coordinates of points. |
grid |
Whether to add grid lines on the plot? |
title |
The value should be |
closed |
Whether the curve is closed? |
... |
Other arguments passed to |
This function is only for a quick demonstration of curves represented as two-column coordinate matrices.
No value is returned.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.