因果圖顏色是否可以將顏色信息嵌入因果圖表中?如果不是,這可能是功能請求嗎?
這對於跟踪根本原因調查的進展非常有用。當存在多個具有相同名稱(例如:溫度,設置)的文本編輯框時,此功能特別有用。
我正在使用JMP14.3.0
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Ishikawa.jmp" );
dt << Diagram(
Y( :Child ),
X( :Parent ),
SendToReport(
Dispatch( {}, "Solder process", TextEditBox, {Font Color( 5 )} ),
Dispatch( {}, "Splatter", TextEditBox, {Font Color( 5 )} ),
Dispatch( {}, "Flux", TextEditBox, {Font Color( 5 )} ),
Dispatch( {}, "Chain speed", TextEditBox, {Font Color( 5 )} ),
Dispatch( {}, "Temperature", TextEditBox, {Font Color( 5 )} ),
Dispatch( {}, "Setup", TextEditBox, {Font Color( 5 )} ),
Dispatch( {}, "Control", TextEditBox, {Font Color( 5 )} ),
Dispatch( {}, "Wave pump", TextEditBox, {Font Color( 5 )} ),
Dispatch( {}, "Height", TextEditBox, {Font Color( 5 )} ),
Dispatch( {}, "Flow", TextEditBox, {Font Color( 5 )} ),
Dispatch( {}, "Raw card", TextEditBox, {Font Color( 3 )} ),
Dispatch( {}, "Short circuit", TextEditBox, {Font Color( 3 )} ),
Dispatch( {}, "Shroud", TextEditBox, {Font Color( 3 )} ),
Dispatch( {}, "Moisture context", TextEditBox, {Font Color( 3 )} ),
Dispatch( {}, "Time", TextEditBox, {Font Color( 3 )} ),
Dispatch( {}, "Temperature", Text Edit Box( 2 ), {Font Color( 3 )} ),
Dispatch( {}, "Components", TextEditBox, {Font Color( 0 )} ),
Dispatch( {}, "Missing from reel", TextEditBox, {Font Color( 0 )} ),
Dispatch( {}, "Vendor", TextEditBox, {Font Color( 0 )} ),
Dispatch( {}, "Setup", Text Edit Box( 2 ), {Font Color( 0 )} ),
Dispatch( {}, "Wrong part", TextEditBox, {Font Color( 0 )} ),
Dispatch( {}, "Functional failure", TextEditBox, {Font Color( 0 )} )
)
);數據表圖形腳本編寫回复:因果圖顏色我很確定我看到了@ andreacoombs1設置表格模板,以與為魚骨的分支著色的腳本一起使用。 不幸的是,我沒有那個腳本。
回复:因果圖顏色可以設置數據表以使用腳本為魚骨著色。這是三個關鍵步驟和一些正在發生的事情的注意事項。
1.必須按照創建魚骨的順序對數據表進行排序。上一行中有“父級”作為“子級”的任何行都必須在下一行中。 Ishikawa.jmp數據集不是按此順序。下面的腳本將創建一個名為“ Ishikawa Sorted”的新數據表。注意,例如,在“焊接過程”中有一個稱為“溫度”的子級,在其他行中是“父級”。焊接工藝,溫度在第9行中,溫度,設置緊接在第10行中。
2.添加名為“顏色”的列,其中包含一個標準JMP顏色。出於演示目的,下面的腳本添加了此列,還為此顏色添加了行狀態列,並為數據表添加了顏色,以使方案更加明顯。我已經將5種潛在的根本原因類別分別上色了。 例如,當您得出有關潛在根本原因的結論時,我也將其中一些塗成灰色。
3.最後一步是運行以下腳本:1)創建魚骨圖,2)從數據表中提取顏色,3)為魚骨中的文本著色。包含這三個步驟的腳本可以保存到數據表中。魚骨圖中的文本字符串存儲在文本編輯框中。第一個文本編輯框對應於數據表中的第一個或最高順序的父級,在這種情況下,其為“電路板上的缺陷”。因此,For循環的文本編輯框包含i + 1,而相應的顏色包含i。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Ishikawa.jmp" );
//Reorder by defect groups
dt << New Column("Row Order", set values (
{1,5,15,21,27,2,3,4,6,7,8,9,12,10,11,13,14,16,17,
18,19,20,22,25,26,23,24,28,29,30,31,32,33})
);
ndt = Data Table( "Ishikawa" ) << Sort(
By( :Row Order ),
Order( Ascending ),
Output Table( "Ishikawa Sorted" )
);
//Add column for color, color rows by color
ndt << New Column ("Color", set values(
{4,4,4,1,5,5,5,5,1,1,1,5,5,5,3,
3,3,3,3,3,8,8,8,8,8,8,6,6,6,6,6,1,6})
);
ndt << New column ("Color State", "Row State", Formula(Color State( :Color )));
Column(ndt,"Color State")<<COPY to="" row="" states=""></COPY>回复:因果圖顏色謝謝@ andreacoombs1 。您知道在dt:Row Order列中自動執行值的方法嗎?
回复:因果圖顏色該腳本可以幫助您達到目標。我將不得不考慮如何拉相應的父級,但是這裡是如何獲得子級和行級的方法。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Ishikawa.jmp" );
fb1 = dt << Diagram(
Y( :Child ),
X( :Parent ))
;
fb1rep = fb1<<REPORT></REPORT>
回复:因果圖顏色謝謝@ andreacoombs1 。實際上,您的腳本確實可以實現大部分功能。我認為該腳本會一直進行下去。我尚未進行魯棒性測試,但似乎工作正常。
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Ishikawa.jmp" );
// Add color column.
dt << New Column( "Color",
Numeric,
"Continuous",
Format( "Best", 12 ),
Value Labels( {3 = "Red", 5 = "Blue"} ),
Use Value Labels( 1 ),
Set Values( [., 5, 3, ., ., ., ., ., 5, 5, 5, 5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 3, ., ., ., ., ., ., ., ., ., ., .] )
);
// Create diagram.
dgram = dt << Diagram( Y( :Child ), X( :Parent ) );
// Get diagram order.
dgramRep = dgram << Report;
dgramRep[Hier Box( 1 )] << Make Into Data Table();
orderDt = Current Data Table();
orderDt << Set Name( "Row Order" );
orderDt << New Column( "Row Order", Numeric, Continuous, Values( Index( 1, N Rows( orderDt ) ) ) );
// Update dt with row order.
dt << Update( With( orderDt ), By Matching Columns( :Parent == :Parent, :Child == :Child ) );
Close( orderDt, No Save );
// Set colors.
orderList = As List( dt:Row Order << Get Values() );
colorList = As List( dt:Color << Get Values() );
For( i = 1, i <= N Rows( dt ), i++,
c = colorList[Loc( orderList, i )][1];
If( !Is Missing( c ),
dgramRep[Text Edit Box( i + 1 )] << Font Color( c )
);
);回复:因果圖顏色我剛剛看到了這個帖子,我剛剛提交到JMP願望清單,添加了其他功能,以使JMP因果關係更像思維導圖,這是基於我在2020年JMP Discovery Summit上的主題。
您可以看到我的2020 JMP Discovery Summit演講:使用JMP因果圖,思維導圖軟件和JSL進行結構化的問題解決(2020-US-30MP-569)
我能夠創建一個交互式浮動窗口,該窗口允許用戶通過將消息發送到“文本編輯框”來在“標籤”列中添加“ E”,“ C”,“ N”,並且每個字母包含不同的字體顏色。 如果缺少,腳本還將創建“標籤”列。
我正在嘗試為您的任何初始文本加上顏色的問題執行相同的操作,但是在向子父母發送郵件時出現一些問題,它想為下面的所有文本著色。 但是,此發布是一個有趣的概念,我們擁有JMP用戶,他們使用相同的因果圖,並使用右鍵單擊每個文本編輯框的內置功能為每個問題手動使用顏色編碼不同的文本。 交互式浮動窗口概念很不錯,因為您可以在團隊進行頭腦風暴時將其著色或恢復為原始顏色。
我會將您的建議添加到“因果圖”的相同願望清單中,也許開發人員將在以後的版本中進行研究,並添加為第4列選項。 這是JMP願望清單下的帖子:魚骨/因果關係圖:對當前平台的增強以實現思維導圖
回复:因果圖顏色@機器人我沒有意識到您可以從HierBox(1)製作數據表。 做到了!