【发布时间】:2019-07-26 14:37:27
【问题描述】:
我获得了 x/y 坐标和时间戳形式的眼动追踪注视数据。
现在我想使用 R 包 saccades 绘制 saccades。不幸的是,它不起作用。我猜这是数据格式错误的问题。
我的数据:
head(EUFKDCDL_Q09AS_saccades)
# A tibble: 6 x 4
time x y trial
<dbl> <dbl> <dbl> <dbl>
1 1550093577941 732 391 1
2 1550093577962 706 320 1
3 1550093577980 666 352 1
4 1550093578000 886 288 1
5 1550093578017 787 221 1
6 1550093578037 729 302 1
无效的代码:
fixations <- detect.fixations(EUFKDCDL_Q09AS_saccades)
detect.fixations(EUFKDCDL_Q09AS_saccades) 中的错误: 没有检测到扫视。出了点问题。
应该根据 github (https://github.com/tmalsburg/saccades) 工作的完整代码:
library(saccades)
data(samples)
head(samples)
time x y trial
1 0 53.18 375.73 1
2 4 53.20 375.79 1
3 8 53.35 376.14 1
4 12 53.92 376.39 1
5 16 54.14 376.52 1
6 20 54.46 376.74 1
fixations <- detect.fixations(samples)
head(fixations[c(1,4,5,10)])
trial x y dur
0 1 53.81296 377.40741 71
1 1 39.68156 379.58711 184
2 1 59.99267 379.92467 79
3 1 18.97898 56.94046 147
4 1 40.28365 39.03599 980
5 1 47.36547 35.39441 1310
diagnostic.plot(samples, fixations)
所以我猜我的数据结构一定有问题?什么意思?
我希望你们中的任何人都可以帮助我创建这个扫视图,如所附的截图所示
我是 R 初学者。
【问题讨论】:
-
我不认为这是数据格式的问题,因为我不是这个工作领域的专家,我相信这个问题是你在该领域的专业知识可以帮助你的,因为示例:您确定您的数据具有可被此包中使用的算法检测到的注视点吗?
-
函数的文档说:
This function uses a velocity-based detection algorithm for saccades proposed by Engbert and Kliegl. Anything between two saccades is considered to be a fixation. Thus, the algorithm is not suitable for data sets containing episodes of smooth pursuit eye movements. -
请参阅下面的答案,但您确实应该指定数据的来源。例如眼动仪模型、采样率、值代表什么(可能是像素而不是视角等)、数据是如何导出的。
标签: r eye-tracking