こんにちは - これに対する答えが自明な場合は事前に謝罪しますが、1つの連続軸と1つの離散軸を持つグラフボックスを作成します(つまり、この軸はリストから取得したテキスト項目のセットを表示する必要がありますリストに表示されている順に表示されます。これはできますか?もしそうなら、誰かがそれをするために必要なJSLの例を私に見せてもらえますか?
完璧 - 値ラベルの使用は問題を解決します。 私はそれを考えておくべきでした:)
どうもありがとう!
私はJMPがテキストであるグラフボックスに軸を持つことができるということを知りません。 このようなニーズがある場合は、テキスト軸を処理するJMPプラットフォームの1つを使用してから、必要なグラフィックをそのプラットフォームに追加することができます。 または、セルの値を数値にして、テキストベースの軸に値ラベルを使用することもできます。
これは簡単な例です
Names Default To Here( 1 );
// Text list
NameList = {"KATIE", "LOUISE", "JANE", "JACLYN", "LILLIE", "TIM", "JAMES", "ROBERT", "BARBARA",
"ALICE"};
// Other axis values
AgeList = {12, 14, 13, 16, 15, 12, 12, 15, 14, 16};
// Put into a table
dt = New Table( "test data",
New Column( "Ages", values( AgeList ) ),
New Column( "Ordering", nominal, formula( Row() ) )
);
Wait( .1 ); // Make sure formula gets completed
// I do this to change the formula column to static values
dt:Ordering << delete formula;
// Change the NameList into the form required for Value Labels
For( i = 1, i <= N Items( NameList ), i++,
namelist[i] = Parse( Char( dt:ordering[i] ) || " = \!"" || namelist[i] || "\!"" )
);
// Apply the Value Labels
dt:Ordering << set property("Value Labels",eval(NameList));
// Use the platform to generate the frame box
gb = Graph Builder(
Size( 528, 464 ),
Show Control Panel( 0 ),
Variables( X( :Ordering ), Y( :Ages ) ),
Elements( Points( X, Y, Legend( 3 ) ) )
);
// Sample of adding to the results of the platform
report(gb)[Frame Box(1)] << Add Graphics Script(
Text( Center Justified, {5, 14}, "Text Added" )
);
// open a new window
nw=New Window("test", myVLB = V List Box());
// Add the platform output to the display
myVLB << append(report(gb)[frame box(1)]);