Open ratnanil opened 3 years ago
https://github.com/pampicloud/cma-week1/blob/def2cf6735745bf0b540d558590c630858781f2f/assignment/assignment_2.Rmd#L195-L198You need to use geom_path() instead of geom_line, since the latter joins points from left to right (west to east) instead of choronologially.
geom_path()
In addition, you need to make sure the coordinates are equal with coord_fixed()
coord_fixed()
ggplot(NULL, aes(E, N)) + geom_path(data = caro, col = "red") + geom_point(data = caro, col = "red") + geom_path(data = caro_3, col = "blue") + geom_point(data = caro_3, col = "blue") + coord_fixed()
https://github.com/pampicloud/cma-week1/blob/def2cf6735745bf0b540d558590c630858781f2f/assignment/assignment_2.Rmd#L195-L198
You need to use
geom_path()
instead of geom_line, since the latter joins points from left to right (west to east) instead of choronologially.In addition, you need to make sure the coordinates are equal with
coord_fixed()