我有以下的数据帧
Condition congruency Distance Measure Score liminf limsup ConditionF MeasureF
1 Zero Neutral 0 RTs 445.000 435.000 455.000 Zero RTs
2 Zero Congruent 1 RTs 445.000 435.000 456.000 Zero RTs
3 Zero Congruent 2 RTs 441.000 430.000 451.000 Zero RTs
4 Zero Congruent 3 RTs 432.000 422.000 442.000 Zero RTs
5 Zero Incongruent 1 RTs 449.000 439.000 459.000 Zero RTs
6 Zero Incongruent 2 RTs 449.000 438.000 460.000 Zero RTs
7 Zero Incongruent 3 RTs 453.000 440.000 465.000 Zero RTs
8 All different Neutral 0 RTs 446.000 436.000 456.000 All different RTs
9 All different Congruent 1 RTs 445.000 434.000 455.000 All different RTs
10 All different Congruent 2 RTs 449.000 438.000 461.000 All different RTs
11 All different Congruent 3 RTs 449.000 438.000 461.000 All different RTs
12 All different Incongruent 1 RTs 446.000 436.000 456.000 All different RTs
13 All different Incongruent 2 RTs 447.000 436.000 458.000 All different RTs
14 All different Incongruent 3 RTs 450.000 440.000 461.000 All different RTs
15 Zero Neutral 0 Errors 0.029 0.018 0.039 Zero Errors
16 Zero Congruent 1 Errors 0.023 0.015 0.031 Zero Errors
17 Zero Congruent 2 Errors 0.023 0.014 0.033 Zero Errors
18 Zero Congruent 3 Errors 0.027 0.018 0.036 Zero Errors
19 Zero Incongruent 1 Errors 0.034 0.024 0.044 Zero Errors
20 Zero Incongruent 2 Errors 0.036 0.024 0.048 Zero Errors
21 Zero Incongruent 3 Errors 0.024 0.013 0.035 Zero Errors
22 All different Neutral 0 Errors 0.019 0.013 0.026 All different Errors
23 All different Congruent 1 Errors 0.028 0.017 0.038 All different Errors
24 All different Congruent 2 Errors 0.021 0.011 0.032 All different Errors
25 All different Congruent 3 Errors 0.031 0.022 0.041 All different Errors
26 All different Incongruent 1 Errors 0.024 0.010 0.037 All different Errors
27 All different Incongruent 2 Errors 0.020 0.011 0.029 All different Errors
28 All different Incongruent 3 Errors 0.019 0.010 0.028 All different Errors
我想为RTS和错误(我的DV拍摄了曲线图,因为我想将它们放在一起在同一个图形的空间,我使用face_grid此:
ggplot(matriz, aes(Distance, Score, shape= congruency, linetype=congruency)) +
geom_point(size=5) +
geom_line(size=1) +
geom_errorbar(aes(ymax = limsup, ymin= liminf), width=0.25, linetype=1) +
facet_grid(MeasureF~ConditionF,scales= "free")
事情是,我想自定义每个Y轴。 具体而言,我想设置该轴的限制。 这是很简单的,如果我有一个简单的图形(我只需要包括指令coord_cartesian()
但我没有,当我用如何做到这一点的想法facet_grid()