图形生成器箱线图创建重复的数据点我正在尝试实现一个箱线图,其中置信菱形和数据点以黑色显示,而方框本身则使用基于列值的颜色。此外,我想用抖动显示原始数据点。
我正在使用上一篇文章中建议的解决方法:
如何更改图表中的所有箱线图置信菱形颜色
该解决方案使用两个相互叠加的多重箱线图,以允许箱线图及其置信菱形具有不同的颜色。
它基本上有效,但我仍然面临的问题是潜在的异常值现在显示为两个单独的数据点。
使用 big class.jmp 的示例

该图的代码:
Graph Builder(
Size( 1845, 897 ),
Show Control Panel( 0 ),
Variables( Y( :weight ), Group X( :sex ), Color( :sex ) ),
Elements(
Box Plot( Y, Legend( 7 ), Box Style( "Solid" ), Fences( 0 ) ),
Points(
Y,
Color( 0 ),
Legend( 6 ),
Jitter( "Random Uniform" ),
Jitter Limit( 0.3179 )
),
Box Plot( Y, Color( 0 ), Legend( 8 ), Confidence Diamond( 1 ) ),
Bar( Y, Legend( 9 ), Bar Style( "Float" ), Label( "Label by Value" ) )
),
SendToReport(
Dispatch( {}, "400", LegendBox,
{Legend Position(
{7, [-1, 0, 1, -3], 6, [-1], 8, [-3, -3], 9, [-3, -3]}
)}
)
)
);有办法实现这个吗?我想这需要不绘制箱线图潜在异常值,但我可以想象这很难做到。
数据探索与可视化回复:图形生成器箱线图创建重复的数据点如果 jitter=auto,数据点就会简单重叠,对吗?
遗憾的是,我更喜欢图表的“抖动=随机均匀”的美感。
我将就此问题联系 JMP 支持。
回复:图形生成器箱线图创建重复的数据点问题似乎是“随机均匀”的抖动设置。将设置更改为“自动”,抖动仍然存在,并且没有重复的数据点。您需要联系 JMP 支持并提交问题。这似乎是一个真正的 Bug。

Names Default To Here( 1 );
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
Size( 1845, 897 ),
Show Control Panel( 0 ),
Variables( Y( :weight ), Group X( :sex ), Color( :sex ) ),
Elements(
Box Plot( Y, Legend( 7 ), Box Style( "Solid" ), Fences( 0 ) ),
Points(
Y,
Color( 0 ),
Legend( 6 ),
Jitter( "Auto" ),
Jitter Limit( 0.3179 )
),
Box Plot( Y, Color( 0 ), Legend( 8 ), Confidence Diamond( 1 ) ),
Bar( Y, Legend( 9 ), Bar Style( "Float" ), Label( "Label by Value" ) )
),
SendToReport(
Dispatch( {}, "400", LegendBox,
{Legend Position(
{7, [-1, 0, 1, -3], 6, [-1], 8, [-3, -3], 9, [-3, -3]}
)}
)
)
);