"hacer tabla de gráficos como este"Buenos días
me gustaría escribir esta función JMP "hacer una tabla de gráficos como este", para guardar mi imagen directamente en la tabla JMP asociada.
Puede ayudarme alguien
Re: "hacer tabla de gráficos como este"Este ejemplo hace el trabajo uno a la vez porque parece que podría tener algunos requisitos específicos sobre qué datos desea conservar.
dt = Open( "$sample_data/big class.jmp" );
picDt = New Table( "dist pics", New Column( "pics", Expression, "None", Set Values( {} ),Set Display Width( 250 ) ) );
ages = {14, 16, 17};
For( j = 1, j <= N Items( ages ), j++,
dt << Select Where( dt:age == ages[j] );
subsetDt = dt << subset( output table name( Char( ages[j] ) ) );
dist = subsetDt << Distribution(
Continuous Distribution( Column( subsetDt:weight ), Quantiles( 0 ), Summary Statistics( 0 ), Outlier Box Plot( 0 ) )
);
pic = (Report( dist )[Outline Box( "weight" )]) << getpicture;
dist << closewindow();
Close( subsetDt, "nosave" );
picDt << addrows( 1 );
picDt:pics[j] = pic;
);
picDt<<SET cell="" height=""></SET>
Three distribution pictures in a tableTres fotos de distribución en una mesa.
Utilice las variables JSL para realizar un seguimiento de las tablas: dt, subsetDt, picDt. JSL a menudo necesita que sea específico acerca de la tabla cuando se está utilizando más de una.
Re: "hacer tabla de gráficos como este"En aras de una mejor atención al problema. Reporto parte de mi guión:
// the entire loop scan a table and for each subchart create graph//
For( j = 1, j <= N Items( chart_title ), j++,
selectDT[1] << Select Where( :SPC_Chart == chart_title[j] );
display = selectDT[1] << subset( output table name( chart_title[j] ) );
display( j ) << Get name;
test_CTRL; // this is an expression that make some graphs
);
Por lo tanto, me gustaría caputure el gráfico creado por test_CTRL y guárdelo en una tabla de datos usando hacer tabla de gráficos como este
/*New Table( "Chart",
Add Rows( 1 ),
New Column( "P", Expression, "None", Set Values( {New Image( Char To Blob( a ), "png" )} ) ),
New Column( "Y", Character, "Nominal", Set Values( chart_title[j] ) )
)*/
);