你好,
我一直无法在 JMP 中获得正确叠加 boxplt 的点。有谁知道如何让点在每个箱线图中对齐?
谢谢,
纳伊姆

您可以尝试向 x 轴添加额外的列,并使用同一列的颜色

Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
gb = Graph Builder(
Variables(X(:age), X(:sex, Position(1)), Y(:height), Color(:sex)),
Elements(
Box Plot(X(1), X(2), Y, Legend(3)),
Points(X(1), X(2), Y, Legend(4))
)
);选择适合您的数据的抖动选项。默认值通常是“居中网格”,但您可能需要选择“随机均匀”以防止点在行中对齐。