所以,首先,感謝發布它的酷數據集。
對於疊加直方圖,如下所示:

我將變量放在X軸上,並將輸出置於疊加角色。然後選擇直方圖圖元素。
Graph Builder(
Show Control Panel( 0 ),
Variables( X( :Variable ), Overlay( :Output ) ),
Elements( Histogram( X, Legend( 6 ) ) )
)
問題的其餘部分是我認為事情變得更難的地方。
我使用了一個名為Inveractive Binnin v2的插件。並將數據分為數字,10組,行數大致相同。
加載項允許我將bin保存到數據表。
然後我用Analyze / Tabulate製作了這張桌子

Tabulate(
Show Control Panel( 0 ),
Add Table(
Column Table( Grouping Columns( :Output ), Statistics( Row % ) ),
Row Table( Grouping Columns( :Variable Groups ) )
)
)
//:Variable Groups is the column generated from the interactive binning add-in
我將製表表放入數據表並堆疊缺陷類型。
所以現在我有一個表,其中包含變量組的列,變量組的百分比列(每種類型的缺陷),以及帶有缺陷或良好標籤的列。(三欄)。
這讓我構建了這個圖。

Graph Builder(
Size( 966, 489 ),
Show Control Panel( 0 ),
Variables( X( :Variable Groups ), Y( :Data ), Overlay( :Label ) ),
Elements(
Bar( X, Y, Legend( 5 ), Bar Style( "Stacked" ), Label( "Label by Value" ) )
)
)
我不太確定這是不是你要去的地方,但是它更接近一點。 也許?
X
親愛的社區,
我一直在尋找覆蓋有“缺陷”的“變量”的直方圖。為此,我使用公式在“ Variable_coded”列中創建了垃圾箱。
接下來,我使用了圖形生成器“ Variable_coded”作為X並覆蓋了“輸出”。我也在數據過濾器中使用“時間”。
我嘗試了“按值標記”選項。 但是,我希望圖形構建器在每個條形頂部的“箱內總計”中標記百分比。
是否還可能在後台使用總值,當我使用過濾器時總值會動態變化。換句話說,我想合併這兩個圖。
謝謝
dt = open(“ $ Desktop \ SampleData_Bt1.jmp”); dt << New Column(“ Variable_coded”,Character,“ Nominal”,Formula(List = {“ 20”,“ 21”,“ 22”,“ 23”,“ 24”,“ 25”,“ 26”,“ 27“,” 28“,” 29“,” 30“,” 31“,” 32“,” 33“,” 34“,” 35“,” 36“,” 37“,” 38“,” 39“ ,“ 40”} [Loc Sorted([20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],:Variable)]),); dt << select where(:Output ==“ GOOD”); dt <<隱藏和排除; dt <<圖形生成器(Size(1072,922),Lock Scales(1),Variables(X(:Variable_coded),Overlay(:Output)),Elements(Bar(X,Legend(10),Label(“ Label by值”)),標題框(X,圖例(11),摘要統計信息(“ N”))),本地數據過濾器(添加過濾器(列(:time),其中(:time> = 117.31&:time <= 124.29)))),SendToReport(Dispatch({},“ Variable_coded”,ScaleBox,{Min(-0.5),Max(17.5),Inc(1),Minor Ticks(0}}),Dispatch({},“” ,ScaleBox,{Min(0),Max(500),Inc(50),Minor Ticks(0)}),Dispatch({},“ 400”,ScaleBox,{Legend Model(10,Properties(2,),顏色(57),漸變({比例值([0 1]),寬度(9),N標籤(6)})})})))))); dt << Graph Builder(Size(534,463),Show Control Panel(0),Lock Scales(1),Variables(X(:Variable_coded)),Elements(Bar(X,Legend(7))),本地數據Filter(添加Filter(列(:time),Where(:time> = 117.31&:time <= 124.29))),SendToReport(Dispatch({},“ Variable_coded”,ScaleBox,{Min(-0.5),Max( 17.5),Inc(1),次要刻度(0)}),Dispatch({},“”,ScaleBox,{Min(0),Max(500),Inc(50),次要刻度(1}}),Dispatch({},“ 400”,ScaleBox,{傳奇模型(7,屬性(0,{填充顏色(32)),梯度({比例值([0 1]),寬度(9),N標籤(6) }}})}})))