# Time-normalize trajectories
mt_example <- mt_time_normalize(mt_example)
# Create riverbed plot for all trials
mt_plot_riverbed(mt_example)
## Not run:
# # Create riverbed plot for all trials with custom x and y axis labels
# mt_plot_riverbed(mt_example) +
# ggplot2::xlab("Time step") + ggplot2::ylab("X coordinate")
#
# # Create separate plots for typical and atypical trials
# mt_plot_riverbed(mt_example, facet_col="Condition")
#
# # Note that it is also possible to replace the
# # default scale for fill with a custom scale
# mt_plot_riverbed(mt_example, facet_col="Condition") +
# scale_fill_gradientn(colours=grDevices::heat.colors(9),
# name="Frequency", trans="log", labels=scales::percent)
# ## End(Not run)
Run the code above in your browser using DataLab