line_azimuth | R Documentation |
Extract azimuths of line segments
line_azimuth(x)
lines_azimuths(x)
x |
sf object of type |
It is recommended to perform line_azimuth()
on single line objects, i.e.
type "LINESTRING"
, instead of "MULTILINESTRING"
. This is because the azimuth
of the last point of a line will be calculated to the first point of the
next line otherwise. This will cause a warning message. For MULTILINESTRING
objects, use lines_azimuths()
.
sf object of type "POINT"
with the columns and entries of the first row of x
data("plates")
subset(plates, pair == "af-eu") |>
smoothr::densify() |>
line_azimuth()
## Not run:
lines_azimuths(plates)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.