How to plot my aggregated trajectories using mousetrap in R
Hi everyone :)
I am trying to plot the xpos and ypos from my tn_trajectories. I want the plot to look something like this, I want it to include the entire mouse tracking screen and both options illustrated with two small squares in each of the upper corners.
I preprocessed the data in the same way (time normalize, exclude initiation, align start and finish and symmetric remapping). This is how I remapped it to be symmetric:
raw_remapped <- mt_remap_symmetric( raw_remapped, use = "tn_trajectories", save_as = "tn_trajectories", dimensions = c("xpos", "ypos"), remap_xpos = "left", remap_ypos = "no")
But when I apply the mt_plot_aggregate function like this after preprocessing:
mt_plot_aggregate(raw_remapped, use="tn_trajectories", color="condition") + ggtitle("Aggregated trajectories") + theme_minimal()
I get this plot:
I don't understand why the trajectories start at x=350, since the mouse was reset to x=0, y=-352 at each trial round and the starting point on the y-axis is correct. From the plot you get the impression that the option not chosen was very undesirable since the trajectory is nowhere near the upper right corner. This is not the case, since the blue line indicates a stronger leaning toward the option not chosen (no) compared to the option chosen (yes). I looks like both options are to the left of the starting point, which they are not.
Please ask questions if this is confusing! I hope you can clear it up for me.