sfc_segments,sfc_nxn-method {sfcurve} | R Documentation |
Coordinates of the points on the curve
Description
Coordinates of the points on the curve
Usage
## 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")
Arguments
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. |
Details
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.
Value
A two-column matrix of coordinates of points on the curve.
Examples
p = sfc_2x2("I", "11")
loc = sfc_segments(p)
plot(loc, type = "l", asp = 1)
[Package sfcurve version 1.0.0 Index]