回复:不同大小的子圖?你好@hogi ,
是的,這樣做可能有點挑戰,但這是可能的:)
這是 JMP 的結果:

這是在 JMP 上實現它的腳本(使用示例中的“Big Class”數據集):
Graph Builder(
Size( 638, 610 ),
Show Control Panel( 0 ),
Variables( X( :X ), X( :height ), Y( :height ), Y( :weight ), Overlay( :sex ) ),
Relative Sizes( "X", [157 427] ),
Relative Sizes( "Y", [114 246] ),
Elements( Position( 1, 1 ) ),
Elements( Position( 1, 2 ), Histogram( X, Y, Legend( 44 ) ) ),
Elements( Position( 2, 1 ), Histogram( X, Y, Legend( 42 ) ) ),
Elements(
Position( 2, 2 ),
Points( X, Y, Legend( 36 ) ),
Smoother( X, Y, Legend( 45 ) )
),
SendToReport(
Dispatch(
{},
"X",
ScaleBox,
{Label Row(
{Automatic Font Size( 0 ), Automatic Tick Marks( 0 ),
Show Major Labels( 0 ), Show Major Ticks( 0 ), Show Minor Ticks( 0 )
}
)}
),
Dispatch(
{},
"height",
ScaleBox( 2 ),
{Label Row(
{Automatic Font Size( 0 ), Automatic Tick Marks( 0 ),
Show Major Labels( 0 ), Show Major Ticks( 0 ), Show Minor Ticks( 0 )
}
)}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
42,
Base( 0, 0, 0, Item ID( "F", 1 ) ),
Base( 1, 0, 0, Item ID( "M", 1 ) )
), Legend Model(
36,
Base( 0, 0, 0, Item ID( "F", 1 ) ),
Base( 1, 0, 0, Item ID( "M", 1 ) )
)}
),
Dispatch( {}, "X title", TextEditBox, {Set Text( "" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "" )} ),
Dispatch(
{},
"400",
LegendBox,
{Legend Position(
{44, [-1, -1], 42, [-1, -1], 36, [-1, -1], 45, [0, 1]}
)}
)
)
);
“技巧”是在你的數據表中創建一個虛擬變量列“X”(例如只有值“1”),以實現左角的子圖。 然後您可以隱藏所有圖形刻度和值。 在 X 軸上,您有兩個變量:“X”和“身高”,在 Y 軸上,您有兩個變量“身高”和“體重”。
要單獨調整圖表中元素的大小,只需在軸上移動鼠標,直到對角線上出現雙箭頭,然後單擊並移動此雙箭頭以調整所需軸/元素的大小。
我希望這能幫到您,
PS:如果您還不知道,我強烈建議您查看“圖庫中的圖片”系列中有關 Graph Builder 的提示和技巧,作者是@scwise (Scott Wise),總是有趣且有見地!
回复:不同大小的子圖?維克多和霍吉,
感謝 Victor 對 Gallery Advanced Graph Builder 視圖中的圖片大聲疾呼,以及您出色的腳本解決方案。 還有一種不太優雅但非編碼的方式來實現這種所需的圖形視圖。 它是“圖片來自畫廊 5”中的方法之一,您可以通過此鏈接訪問視頻並下載包含步驟、數據和腳本的日誌: Discovery-Summit-Munich-2020-Pictures-From-the-Gallery-5 . 訣竅是設置虛擬變量,可用於將額外的圖形類型放在側面和頂部以生成另一個視圖,例如在本例中圍繞相同 X 軸和 Y 軸上的散點圖的箱線圖。

希望這對您有所幫助,並讓您在 JMP 中繼續探索和可視化的樂趣!
斯科特
不同大小的子圖?是否可以在 Jmp 中生成此圖?

數據探索和可視化回复:不同大小的子圖?
@Victor_G寫道:要獨立調整圖表中元素的大小,只需在軸上移動鼠標,直到對角線上出現雙箭頭,然後單擊並移動此雙箭頭以調整所需的軸/元素的大小。
極好的!
我剛剛在復活節彩蛋列表中添加了一個條目:
CTRL/Alt/Shift + 單擊/選擇/雙擊/右鍵單擊
回覆:子圖大小不同?我可以把左邊的直方圖翻轉一下,讓長條圖指向左邊嗎?
回覆:子圖大小不同?是的@hogi ,只需右鍵單擊 x 軸左側,轉到“軸設定”,然後選中“反轉順序”選項即可:

你應該得到具有所需方向的圖表:

以下是腳本:
Graph Builder(
Size( 638, 610 ),
Show Control Panel( 0 ),
Variables( X( :X ), X( :height ), Y( :height ), Y( :weight ), Overlay( :sex ) ),
Relative Sizes( "X", [157 427] ),
Relative Sizes( "Y", [114 246] ),
Elements( Position( 1, 1 ) ),
Elements( Position( 1, 2 ), Histogram( X, Y, Legend( 44 ) ) ),
Elements( Position( 2, 1 ), Histogram( X, Y, Legend( 42 ) ) ),
Elements(
Position( 2, 2 ),
Points( X, Y, Legend( 36 ) ),
Smoother( X, Y, Legend( 45 ) )
),
SendToReport(
Dispatch( {}, "X", ScaleBox,
{Reversed Scale, Label Row(
{Automatic Font Size( 0 ), Automatic Tick Marks( 0 ),
Show Major Labels( 0 ), Show Major Ticks( 0 ), Show Minor Ticks( 0 )
}
)}
),
Dispatch( {}, "height", ScaleBox( 2 ),
{Label Row(
{Automatic Font Size( 0 ), Automatic Tick Marks( 0 ),
Show Major Labels( 0 ), Show Major Ticks( 0 ), Show Minor Ticks( 0 )
}
)}
),
Dispatch( {}, "400", ScaleBox,
{Legend Model(
42,
Base( 0, 0, 0, Item ID( "F", 1 ) ),
Base( 1, 0, 0, Item ID( "M", 1 ) )
), Legend Model(
36,
Base( 0, 0, 0, Item ID( "F", 1 ) ),
Base( 1, 0, 0, Item ID( "M", 1 ) )
)}
),
Dispatch( {}, "X title", TextEditBox, {Set Text( "" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "" )} ),
Dispatch( {}, "400", LegendBox,
{Legend Position(
{44, [-1, -1], 42, [-1, -1], 36, [-1, -1], 45, [0, 1]}
)}
)
)
);
請記得在資料集中新增一個虛擬列(這裡標記為「X」),其中只包含常數值(這裡為 1),以便能夠新增像這樣的視覺化效果。
希望這個回答對您有幫助。
回覆:子圖大小不同?啊!
通常,我使用名義 X 表示「所有行 = 同一類別」—這樣就無法反轉圖表。
訣竅在於:將建模類型變更為連續型。
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
new column ("X", Nominal,Set each value(1));
Graph Builder(
Size( 638, 610 ),
Show Control Panel( 0 ),
Graph Spacing( 4 ),
Variables( X( :X ), X( :height ), Y( :height ), Y( :weight ), Overlay( :sex ) ),
Relative Sizes( "X", [157 427] ),
Relative Sizes( "Y", [114 246] ),
Elements( Position( 1, 1 ) ),
Elements( Position( 1, 2 ), Histogram( X, Y ) ),
Elements( Position( 2, 1 ), Histogram( X, Y ) ),
Elements( Position( 2, 2 ), Points( X, Y), Smoother( X, Y) ),
SendToReport( Dispatch( {}, {:X}, ScaleBox, {Reversed Scale} ) ),
SendToReport(
Dispatch( {}, "X", ScaleBox,
{Reversed Scale}
)
));
wait(3);
:X << Set Modeling Type( "Continuous" );