Description Usage Arguments Value Examples
Plot sparklines for several track variables.
1 2 3 |
tracks |
A tracks object. |
trial |
A character vector indicating from which trial to plot. |
start |
Start of section to plot (either in frames or time). |
end |
End of section to plot (either in frames or time). |
vars |
A character vector indicating which variables get a sparkline. They will be looked for in the $tr and $pairs tables. Optional. When not given, will plot all variables available. |
point_events |
An optional vector of point events to highlight with vertical dotted lines (either frame numbers or times). |
window |
The time that should be plotted around the events, i.e. total size of the window. |
quantiles |
A vector of length two with the probabilities to be used for the shade grey quantile boxes. If frames is left NULL, but point_events and window are provided then a window around the point_events. |
A ggplot
object.
1 2 3 4 5 | Guppies <- guppies %>%
as_tracks(30, 1080) %>%
mutate(sp = speed(), acc = acceleration(), turn = angular_velocity())
plot_tracks_sparklines(Guppies, 'a', point_events = 12000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.