R/plotting_functions.R
plot_viewr_trajectories.Rd
Plot each trajectory within a viewr object
plot_viewr_trajectories( obj_name, plot_axes = c("length", "width"), multi_plot = FALSE )
obj_name | A viewr object (a tibble or data.frame with attribute
|
---|---|
plot_axes | Which position axes should be plotted? A character vector
including exactly two of the following choices must be supplied:
|
multi_plot | Should separate plots (one per trajectory) be created or should one multi-plot grid be generated. Defaults to FALSE, which produces separate plots. |
A (base-R) series of plots or single plot (if multi_plot =
TRUE
) that depict each trajectory along the chosen axes.
Other plotting functions:
plot_by_subject()
,
visualize_frame_gap_choice()
Vikram B. Baliga
library(pathviewR) ## Import the example Motive data included in the package motive_data <- read_motive_csv(system.file("extdata", "pathviewR_motive_example_data.csv", package = 'pathviewR')) motive_full <- motive_data %>% clean_viewr(desired_percent = 50, max_frame_gap = "autodetect", span = 0.95)#>plot_viewr_trajectories(motive_full, multi_plot = FALSE)plot_viewr_trajectories(motive_full, multi_plot = TRUE)