「このようなグラフ表を作る」おはようございます
関連するJMPテーブルに自分の写真を直接保存するために、このJMP関数に「このようなグラフのテーブルを作成する」スクリプトを作成したいと思います。
誰かが私を助けることができる
再: "このようなグラフの表を作る"この例では、一度に1つずつ作業を行います。保持したいデータについて特定の要件がある可能性があるためです。
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 tableテーブル内の3つの分布図
JSL変数を使用してテーブルを追跡します:dt、subsetDt、picDt。JSLでは、複数のテーブルが使用されている場合は、そのテーブルについて具体的に説明する必要があります。
再: "このようなグラフの表を作る"よりよく問題を理解するために。私は自分のスクリプトの一部を報告します。
// 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
);
だから、私はグラフによって作成されたキャプチャーをしたいのですが test_CTRL を使用してデータテーブルに保存します。このようなグラフの表を作る
/*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] ) )
)*/
);