View source: R/profile_points.R
profile_azimuth | R Documentation |
Azimuth Between Profile Points
profile_azimuth(x)
x |
|
If only two points are given, the azimuth is calculated using triangulation
from the tectonicr
package.
If more than two points are given, the azimuth is calculated using linear
interpolation in the coordinate reference frame given by profile
.
Azimuth as units
object
profile_length()
p1 <- data.frame(lon = -90.8, lat = 48.6) |>
sf::st_as_sf(coords = c("lon", "lat"), crs = "WGS84")
profile_points(p1,
profile.azimuth = 135, profile.length = 10000,
crs = sf::st_crs("EPSG:26915")
) |>
profile_azimuth()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.