# NOT RUN {
# Time-normalize trajectories
KH2017 <- mt_time_normalize(KH2017)
# Create riverbed plot for all trials
mt_plot_riverbed(KH2017)
# }
# NOT RUN {
# Create separate plots for typical and atypical trials
mt_plot_riverbed(mt_example, facet_col="Condition")
# 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")
# 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") +
ggplot2::scale_fill_gradientn(colours=grDevices::heat.colors(9),
name="Frequency", trans="log", labels=scales::percent)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab