Description Usage Arguments Details
pslg = Planar Straight Line Graph object. A collection of vertices and segments.
1 | create_S(polygon_df)
|
polygon_df |
data.frame containing a single polygon. Must have 'vidx' column |
The 'S' matrix is: A 2-column matrix of segments in which each row is a segment. Segments are edges whose endpoints are vertices in the PSLG, and whose presence in any mesh generated from the PSLG is enforced. Each segment refers to the indices in V of the endpoints of the segment. By default the segments are not specified (NA), in which case the convex hull of the vertices are taken to be the segments. Any vertices outside the region enclosed by the segments are eaten away by the triangulation algorithm. If the segments do not enclose a region the whole triangulation may be eaten away.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.