Displaying 1 result from an estimated 1 matches for "delta_lat".
2013 Mar 15
0
ggplot2, arrows and polar coordinates
...t(seals, aes(x = long, y = lat))
p1 <-
ggplot() +
coord_cartesian() +
geom_rect(data=d, mapping=aes(xmin=x1, xmax=x2, ymin=y1, ymax=y2),
fill="red", color="red", alpha=0.5) +
geom_segment(data=seals, aes(x = long, y = lat, xend = long +
delta_long, yend = lat + delta_lat), arrow = arrow(length = unit(0.2,"cm")))
p2 <-
ggplot() +
coord_polar() +
geom_rect(data=d, mapping=aes(xmin=x1, xmax=x2, ymin=y1, ymax=y2),
fill="red", color="red", alpha=0.5) +
geom_segment(data=seals, aes(x = long, y = lat, xend = long +
delta_lon...