View source: R/plotting_functions.R
plot_viewr_trajectories | R Documentation |
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.
Vikram B. Baliga
Other plotting functions:
plot_by_subject()
,
visualize_frame_gap_choice()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.