plot_time_facets: Facet paths using time bins.

Description Usage Arguments Value

View source: R/tracks_plots.R

Description

Facet paths using time bins.

Usage

1
2
3
plot_time_facets(tracks, x = ~X, y = ~Y, time_bins = 4, color = ~animal,
  mode = "single", nrow = NULL, scales = NULL, facet = trial ~ time_bin,
  coord_boundary = NULL)

Arguments

tracks

A tracks object.

x

Formula for what should be on the x-axis.

y

Formula for what should be on the y-axis.

time_bins

The number of periods time should be divided in.

color

Formula to color the paths.

mode

Either dual, which uses both the rows and columns of the facets to display time bins, or single, where you can set the formula for facet_grid. Single mode is the default.

nrow

Override the number of rows that should be used in facetting. Only used if mode is dual.

scales

Optional setting to facets. See ?ggplot2::facet_grid and ?ggplot2::facet_wrap.

facet

Optional facetting, should probably include time_bin. Only used if mode is set to manual.

coord_boundary

Whether to fix the plot limits to the boundary. Will attempt to autodetect whether plotting ~X and ~Y.

Value

A ggplot object.


Ax3man/trackr documentation built on Oct. 8, 2019, 10:53 p.m.