mt_plot_per_trajectory creates a PDF file with separate plots per
trajectory. This PDF can be used for inspecting individual trajectories. Note
that plotting all trajectories can be time-consuming, especially for raw
trajectories. If the appropriate x and y arguments are
inserted, this function can also be used for plotting velocity and
acceleration profiles.
mt_plot_per_trajectory(file, data, use = "trajectories", x = "xpos", y = "ypos", xlim = NULL, ylim = NULL, axes_exact = FALSE, points = FALSE, rect = NULL, color = "black", fill = NA, verbose = FALSE, show_progress = NULL, ...)data[[use]]. Usually, this value corresponds to either
"trajectories", "tn_trajectories" or "av_trajectories", depending on
whether the raw, time-normalized or averaged trajectories should be
plotted.TRUE, axes will be set without offset
exactly at the limits of the x and y axes (which can be specified using
xlim and ylim]).TRUE, points will be added to the plot using
geom_point.rect is specified.rect is specified.verbose instead.mt_plot_per_trajectory creates a PDF using pdf. Next, it plots
all trajectories individually using mt_plot. Every plot is labeled
using the rownames of the trajectories.
## Not run:
# mt_plot_per_trajectory(mt_example,
# file="trajectories.pdf",
# use="trajectories")
# ## End(Not run)
Run the code above in your browser using DataLab