View source: R/VisualizationFunctions.R
plot_velocity_profiles | R Documentation |
This function plots and returns a ggplot showing velocity profiles of saccades plotted against time. Saccades should be generated with the ivt.filter functions with the save.velosity.profiles parameter set to TRUE. The interval to plot is defined by saccade number as they appear in the sacccades data frame.
plot_velocity_profiles(saccades, onset = NA, offset = NA, verbose = TRUE)
saccades |
data frame including saccades. Each saccade must have a list with a vector of the veloctity profiles |
onset |
first saccade to plot. The value must correspond to a number in the variable "number" in the saccades data frame. If left empty, all saccades are plotted |
offset |
last saccade to plot. The value must correspond to a number in the variable "number" in the saccades data frame. |
verbose |
If TRUE, print the resulting plot |
ggplot with velocity profiles
new.plot <- plot_velocity_profiles(sample.data.saccades, onset = 10, offset = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.