二維圖的橫斷面如何在 JMP 中沿著 1D 線圖垂直繪製 2D 圖中的變化?
我來自 Matlab(MATLAB 中的等效項類似於這)
謝謝,
進階統計建模自動化和腳本編寫消費者與市場研究資料存取回覆:二維圖的橫斷面現在可以透過以下方式找到解決方案圖形生成器工具列

回覆:二維圖的橫斷面哈!@ih打敗了我。 我開始了一個類似的例子,但後來我參加了三個小時的會議。
Names Default to Here( 1 );
dt = New Table( "Slicing",
Add Rows( 2 ),
New Column( "X",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [-1, 1] )
),
New Column( "Y",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [-1, 1] )
),
New Column( "Z",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula(
100 + 25 * :X - 3 * :X ^ 2 - 15 * :Y - 5 * :Y ^ 2 - 7 * :X * :Y
)
)
);
dt << Surface Plot(
Columns( :Z ),
Surface Color Theme( "Green to Black to Red" ),
Surface Color Theme2( "Green to White to Red" ),
Surface Color Theme3( "White to Black" ),
Surface Color Theme4( "Blue to Gray to Red" ),
Response Column Color Theme( "Blue to Green to Red" ),
Response Column Color Theme2( "Spectral" ),
Response Column Color Theme3( "Jet" ),
Response Column Color Theme4( "White to Blue" ),
Formula( "Z" ),
Surface Color Method( "Solid", "Solid", "Solid", "Solid" ),
SetVariableAxis( :X, Axis Data( {} ) ),
SetVariableAxis( :Y, Axis Data( {} ) ),
SetZAxis( :Z, Current Value( 95 ), Axis Data( {} ) ),
SetXVariable( :X ),
SetYVariable( :Y ),
Iso Value( 0, 75 ),
Frame3D( Set Rotation( -54, 0, 38 ) )
);
dt << Profiler(
Y( :Z ),
Profiler(
1,
Term Value( X( 0, Lock( 0 ), Show( 1 ) ), Y( 0, Lock( 0 ), Show( 1 ) ) )
),
SendToReport(
Dispatch(
{"Prediction Profiler"},
"10000",
ScaleBox,
{Min( 72.5 ), Max( 125.754437869822 ), Inc( 10 ), Minor Ticks( 0 )}
)
)
);回覆:二維圖的橫斷面您可以發布一些範例資料和迄今為止的腳本嗎?
回覆:二維圖的橫斷面此外,等高線圖(不是圖形產生器的,使用等高線平台)可以保存網格資料。 只要您想要垂直或水平切片,它就應該是網格資料中的一行或一列。
dt = Open( "$sample_data/big class.jmp" );
// step 1: use the contour plot to get a grid of the data
cp = dt << Contour Plot(
X( :height, :weight ),
Y( :age ),
Show Data Points( 0 ),
Fill Areas( 0 ),
Label Contours( 0 ),
Transform( "Range Normalized" ),
Specify Contours( Min( 13 ), Max( 16.5 ), N( 8 ) )
);
nres = 100; // make this bigger if you think there is meaningful data there
dtGrid = cp << generate grid( nres, nres );
cp<<CLOSEWINDOW></CLOSEWINDOW>
// step 2: make the cross section
dtGrid:height<<SETMODELINGTYPE></SETMODELINGTYPE>
Drive the height selector with up and down arrows.使用向上和向下箭頭驅動高度選擇器。
編輯:網格資料被推斷超出資料點的包絡線。 橫截面的末端可能會遠遠超出推斷範圍。 您可能需要匹配高度=61.5(等)處的等高線圖(閉合的、上方的、也許保持打開的),以查看重量的有效範圍是多少。 即使這樣,等高線圖也會在資料點形成的三角形之間進行一些線性內插。 Big Class 不是特別平滑或密集,因此您會看到許多奇怪的偽影,這些偽影會產生錯誤的細節感,即使在數據點的範圍內也是如此。
回覆:二維圖的橫斷面謝謝。 我的二維圖是基於 Xdata、Ydata 和 Data。
您使用資料過濾器顯示的內容看起來很有希望,但我似乎無法讓它在一個 Xdata 值(對於所有 Ydata 值)處繪製切片。
我會繼續看這邊,但任何方向都會非常有幫助。
(我在JMP13)
回覆:二維圖的橫斷面不確定你的二維繪圖是基於點還是公式。 如果是點,您可以使用圖形產生器根據圖表中的一個維度繪製目標值,並使用資料篩選器定義另一個維度中的「切片」。

如果您正在探索列公式,那麼我同意@馬克貝利分析器是最簡單的方法。 只需更改一個值的值即可查看另一個值的圖表。

以下是兩者的腳本:
Names default to here(1);
dt = Open("$Sample_data/iris.jmp");
New Column("H1_1", Numeric, "Continuous", Format("Best", 12), Set Property("Notes", "Model NTanH(3)"), Formula(TanH(0.5 * ((-3.50407799736543) + -1.69201212624413 * :Sepal length + 4.45798369366822 * :Sepal width))), Set Property("Intermediate", 1));
New Column("H1_2", Numeric, "Continuous", Format("Best", 12), Set Property("Notes", "Model NTanH(3)"), Formula(TanH(0.5 * ((-4.34695576142641) + 0.578814453314083 * :Sepal length + -0.387699136913814 * :Sepal width))), Set Property("Intermediate", 1));
New Column("H1_3", Numeric, "Continuous", Format("Best", 12), Set Property("Notes", "Model NTanH(3)"), Formula(TanH(0.5 * ((-14.9199578715582) + 8.0363609653296 * :Sepal length + -9.32672254743267 * :Sepal width))), Set Property("Intermediate", 1));
New Column("Predicted Petal length", Numeric, "Continuous", Format("Best", 12), Set Property("Notes", "Model NTanH(3)"), Formula(9.72824082889675 + 0.825393378043811 * :H1_1 + 8.38378988028562 * :H1_2 + 1.62929374850912 * :H1_3), Set Property("Predicting", {:Petal length, Creator("Neural")}));
New Window("Plotting points",
H List Box(
Graph Builder(
Size( 522, 456 ),
Show Control Panel( 0 ),
Variables( X( :Sepal length ), Y( :Petal length ) ),
Elements( Points( X, Y, Legend( 295 ) ), Line( X, Y, Legend( 297 ) ) ),
Local Data Filter(
Add Filter(
columns( :Sepal width ),
Where( :Sepal width >= 2.9 & :Sepal width <= 3.1 )
)
)
),
Contour Plot(
X( :Sepal width, :Sepal length ),
Y( :Petal length ),
Show Data Points( 0 ),
Fill Areas( 0 ),
Label Contours( 0 ),
Transform( "Range Normalized" ),
Specify Contours( Min( 2 ), Max( 6 ), N( 5 ) ),
SendToReport(
Dispatch(
{},
"1",
ScaleBox,
{Add Ref Line(
{2.9, 3.1},
"Solid",
"Medium Dark Magenta",
"Slice",
1,
0.25
)}
)
)
)
)
);
//Profiler
Profiler(
Y( :Predicted Petal length ),
Profiler(
1,
Term Value(
Sepal length( 6.302, Lock( 0 ), Show( 1 ) ),
Sepal width( 3.125, Lock( 0 ), Show( 1 ) )
)
),
Expand,
SendToReport(
Dispatch(
{"Prediction Profiler"},
"Profiler",
FrameBox,
{Frame Size( 320, 260 )}
),
Dispatch(
{"Prediction Profiler"},
"Profiler",
FrameBox( 3 ),
{Frame Size( 320, 260 )}
)
)
);
更新:將預測列的列公式新增到腳本中。
回覆:二維圖的橫斷面謝謝,探查器選項看起來很有用,但有很多選項。 我會仔細看看的。
我正在尋找的是基於腳本的方法。
對於 2D 圖,如何取得 x 切片(對於給定 y 值)或 y 切片(對於給定 x 值)。 這就是我現在想做的一切。回覆:二維圖的橫斷面請參閱 JMP 說明中的書籍了解分析器。