我没有数据,但想在JMP中绘制这个repsonse函数y = 72.0 + 3.6x1 - 2.5x2来查看轮廓。我该怎么做呢?谢谢。
Jim说明了JMP如何绘制函数。它适用于Graph Builder和各种分析器。很多用户都没有意识到这种能力存在。或者他们可能已经忘记了它。
但是,Jim,确实有很多行和很多代码来绘制函数。我们不需要数据。我们只需要x和y值来定义绘图范围。这应该做:
Names Default To Here( 1 );
dt = New Table( "Function Plot",
New Column( "y",
Formula( 72.0 + 3.6 * :x1 - 2.5 * :x2 )
),
New Column( "x1", Values( [-1, -1, 1, 1] ) ),
New Column( "x2", Values( [-1, 1, -1, 1] ) )
);
Surface Plot( Columns( :y, :x1, :x2 ), Formula( "y" ), );
这是你想要的?

Names Default To Here( 1 );
dt = New Table( "function", New Column( "y" ), New Column( "x1" ), New Column( "x2" ) );
For( i = 1, i <= 100, i++,
dt << add rows( 1 );
:x1[N Rows( dt )] = i;
:x2[N Rows( dt )] = i ^ 2;
);
dt:y << set formula( 72.0 + 3.6 * :x1 - 2.5 * :x1 ^ 2 );
Surface Plot(
Columns( :y, :x1, :x2 ),
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( "y" ),
Surface Color Method( "Solid", "Solid", "Solid", "Solid" ),
SetVariableAxis( :x1, Axis Data( {} ) ),
SetVariableAxis( :x2, Axis Data( {} ) ),
SetZAxis( y, Current Value( 100 ), Axis Data( {} ) ),
SetXVariable( :x1 ),
SetYVariable( :x2 ),
Iso Value( 0, 127.5 ),
Frame3D( Set Rotation( -58.1704596660756, 1.29965884086262, 60.3238676208627 ) )
);