sfc_segments,sfc_nxn-method | R Documentation |
Coordinates of the points on the curve
## S4 method for signature 'sfc_nxn'
sfc_segments(p, bases = p@rules@bases, start = c(0, 0), ...)
## S4 method for signature 'sfc_sequence'
sfc_segments(p, bases = NULL, start = c(0, 0), by = "Cpp")
p |
An |
bases |
A list of base patterns, consider to use |
start |
Coordinate of the start point. |
... |
Other argument. |
by |
Which implementation? Only for the testing purpose. |
For the sfc_segments()
on the sfc_sequence
object, if bases
is not set,
it uses BASE_LIST
internally. Make sure the sequence only contains the pre-defined base patterns.
A two-column matrix of coordinates of points on the curve.
p = sfc_2x2("I", "11")
loc = sfc_segments(p)
plot(loc, type = "l", asp = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.