Hola a todos.
Tengo una pregunta sobre cómo hacer un diagrama de contorno.
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 )} )
)
);Quiero ingresar especificaciones usando el valor en la tabla actual.
p. ej., columna (dt, edad) [4]
¿Podrías darme algún consejo?
Parece que tu sintaxis está ligeramente desviada. Prueba algo como:
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 ) )
);