圖形產生器箱線圖建立重複的資料點我正在嘗試實現一個箱線圖,其中置信菱形和數據點以黑色顯示,框本身使用基於列值的顏色。此外,我想顯示帶有抖動的原始數據點。
我正在使用上一篇文章中向我建議的解決方法:
如何變更圖中所有箱型圖置信度鑽石顏色
此解決方案使用兩個相互重疊的多重箱線圖,以允許箱線圖及其置信菱形使用不同的顏色。
它基本上有效,但我仍然面臨的問題是潛在的異常值現在顯示為兩個單獨的數據點。
使用 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]}
)}
)
)
);