Looking for some help..
I am trying to create and plot spatial objects in R based on lat
, long
& azimuth
. Azimuth is the angle separation at a given lat, long. Expected output as shown in below image where the objects are filled with blue color:
Input data:
df <- data.frame(Latitude = c(32.897, 32.897, 32.897, 32.811, 32.811, 32.811),
Longitude = c(-97.04, -97.04, -97.04, -97.12, -97.12, -97.12),
Azimuth = c(0, 120, 240, 60, 200, 240),
Site = c("A", "A", "A", "B", "B", "B"),
Sector = c(1,2,3,1,2,3),
stringsAsFactors = F)