안녕하세요 여러분.
등고선 그리기에 대한 질문이 있습니다.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Contour Plot(
X( :height, :weight ),
Y( :age ),
Legend( 2 ),
Show Contours( 1 ),
Show Data Points( 0 ),
Fill Areas( 1 ),
Label Contours( 0 ),
Color Theme( "Blue White Red" ),
Specify Contours( Min( Column( dt, age )[3] ), Max( Column( dt, age )[4] ), N( 10 ) ),
//Specify Contours( Min(0 ), Max(100 ), N( 10 ) ),
SendToReport(
Dispatch(
{},
"1",
),
Dispatch(
{},
"2",
),
Dispatch( {}, "meow", TextEditBox, {Rotate Text( "Horizontal" )} ),
Dispatch(
{},
"Contour Plot Graph",
FrameBox,
{Frame Size( 700, 700 ), Marker Size( 2 ), Marker Drawing Mode( "Normal" ),
Marker Selection Mode( "Unselected Faded" )
}
),
Dispatch( {}, "", AxisBox( 2 ), {Add Axis Label( "-First-" )} ),
Dispatch( {}, "Contour Legend", FrameBox, {Frame Size( 101, 87 )} )
)
);현재 테이블의 값을 사용하여 사양을 입력하고 싶습니다.
예) Column (dt, age) [4]
조언 좀 해주시 겠어요?
구문이 약간 벗어난 것 같습니다. 다음과 같이 시도하십시오.
dt << Contour Plot(
X( :height, :weight ),
Y( :age ),
Legend( 2 ),
Show Contours( 1 ),
Show Data Points( 0 ),
Fill Areas( 1 ),
Label Contours( 0 ),
Color Theme( "Blue White Red" ),
Specify Contours( Min( Column( dt, "age" )[13] ), Max( Column( dt, "age" )[29] ), N( 10 ) )
);