Hello,
I have a question regarding plotting the lines of multiple AoI's in one plot when visualizing the time course.
I tried so many options already but I still get the same outcome in most cases. Four separate plots, one per AOI (for me being: AOI1, AOI2, AOI3, AOI4 with binary data), rather than one plot with the four lines with different colors in one plot. But I also have one column AOI consisting of numbers 1 to 4 in which 1 equals AOI1, 2 equals AOI2, and so forth. In your example of the growth curve analysis, both the fixations to the Animate and Inanimate AOI are included in one plot.
See the uploaded image for the outcome I get when I tried to plot my data with codes as:
response_time2 <- make_time_sequence_data(response_window_clean, time_bin_size = 50, predictor_columns =c("AOI"), aois =c("AOI1", "AOI2", "AOI3", "AOI4"))
plot(response_time2, predictor_column = "AOI" ) + theme_light() + coord_cartesian(ylim = c(0,1))
Also when I tried to get rid of the predictor columns I got the same result.
I followed the instructions given by the eyetrackingR package, such as:
eyesdata <- make_eyetrackingr_data(data, participant_column = "SUBJECT", trial_column = "TRIAL", item_column = "ITEM", time_column = "TIMESTAMP", trackloss_column = "TRACKLOSS", aoi_columns = c('AOI1', 'AOI2','AOI3','AOI4'), treat_non_aoi_looks_as_missing = TRUE)
response_window_clean <- clean_by_trackloss(data = eyesdata, trial_prop_thresh = .25)
It would be great if you could help me with this issue.
I am already struggling with it for a while, and so far now one around me was able to help solving this problem with me.
Let me know if you need anything more