16EAGLE / moveVis

An R package providing tools to visualize movement data (e.g. from GPS tracking) and temporal changes of environmental data (e.g. from remote sensing) by creating video animations.
http://www.movevis.org
GNU General Public License v3.0
131 stars 20 forks source link

Possible to overlay tracks on top of special features (e.g. polygons)? #110

Open MattIDCarter opened 1 year ago

MattIDCarter commented 1 year ago

Hi there, great package!! I am wondering if there is a way to add special features (e.g. polygons) to an existing animation, and have them appear beneath the tracks? Currently I am building the frames using frames_spatial(...) then adding filled polygons using add_gg(expr(geom_sf(...))), but when a track overlaps with the polygon it disappears beneath it and the track is obscured. I thought about converting my polygons to a raster and including that in the frames_spatial command but I already have a terrain raster underlying the tracks. Cheers!