I am looking to calculate the area of different shapes from a set of x and y points (sample 1 coordinates below).
x_coordinates_1 <- c(786.0, 712.3, 717.7, 804.9, 866.1, 877.5, 866.0, 823.2, 765.5, 791.8, 830.3, 846.9, 937.1, 941.1, 983.2, 1020.5, 997.1, 996.9, 921.5, 921.2, 850.6, 850.6, 786.0)
y_coordinates_1 <- c(139.8, 245.3, 291.7, 335.6, 352.7, 402.4, 492.9, 560.1, 603.6, 631.7, 617.8, 618.1, 538.5, 476.4, 443.0, 338.4, 232.7, 232.7, 145.0, 145.0, 121.0, 120.7, 139.8)
I have had a go at using rgeos but have got stuck. Is there another method to do this?
Thanks very much