moveVis provides 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.
moveVis package is closely connected to the
move package and builds up on
ggplot2 grammar of graphics.
The package includes the following functions, sorted by the order they would be applied to create an animation from movement data:
df2move converts a
data.frame into a
moveStack object. This is useful if you do not usually work with the
move classes and your tracks are present as
align_move aligns single and multi-individual movement data to a uniform time scale with a uniform temporal resolution needed for creating an animation from it. Use this function to prepare your movement data for animation depending on the temporal resolution that suits your data.
subset_move subsets a
moveStack by a given time span. This is useful if you want to create a movement animation of only a temporal subset of your data, e.g. a particular day.
get_maptypes returns a character vector of available map types that can be used with
moveVis supports OpenStreetMaps and Mapbox basemap imergay. Alternatively, you can provide custom imagery to
frames_spatial creates a list of
ggplot2 maps displaying movement. Each object represents a single frame. Each frame can be viewed or modified individually. The returned list of frames can be animated using
frames_graph creates a list of
ggplot2 graphs displaying movement-environment interaction. Each object represents a single frame. Each frame can be viewed or modified individually. The returned list of frames can be animated using
ggplot2 functions (e.g. to add layers such as points, polygons, lines, or to change scales etc.) to the animation frames created with
frames_graph. Instead of creating your own
ggplot2 functions, you can use one of the other moveVis
join_frames side-by-side joins the
ggplot2 objects of two or more frames lists of equal lengths into a single list of
ggplot2 objects per frame using
plot_grid. This is useful if you want to side-by-side combine spatial frames returned by
frames_spatial with graph frames returned by
view_spatial displays movement tracks on an interactive
The majority of this functions can be used with the forward pipe operater
%>%, which is re-exported by