Passa una variabile che è il nome di una colonna in un grafico di Variabilità YXCiao,
Ho dati impilati su quali colonne sono nomi del genere:
Dati etichetta, Etichetta 2 Dati 2, Etichetta 3 Dati 3 ... Etichetta N Dati N
Provo a forzare un grafico di variabilità a tutti Etichetta & suo Dati tramite un ciclo for. Ma il mio problema è come passare una var variabile (che è il nome della colonna) in Y e X.
Questo è parte del mio codice:
ColList = dt << get column names( string, numeric );
show(ColList);
dt << Stack(
columns(
ColList
),
Source Label Column( "Label" ),
Stacked Data Column( "Data" ),
Number of Series( 3 ),
Contiguous
);
For(k=1,k<=Length(test_list),k++,
Variability Chart(
Y( :Data ), //<<<<<<---------------------Here I try TODO something like Y(:(test_list[k]))...
X( :Label ),//<<<<<<---------------------Here I try TODO something like X(:(test_list[k]))...<BR /><BR />Max Iter( 100 ), Conv Limit( 0.00000001 ), Number Integration Abscissas( 128 ), Number Function Evals( 65536 ), Analysis Type( Name( "Choose best analysis (EMS REML Bayesian)" ) ), Connect Cell Means( 1 ), Std Dev Chart( 0 ), Points Jittered( 1 ), AIAG Labels( 0 ) ) );test_list ={test1, test2, test3};<BR />
Ri: passare una variabile che è un nome di colonna per un grafico di variabilità YXTutto quello che devi fare è generare i nomi delle colonne che vuoi per ciascuna delle iterazioni. Vedere il codice qui sotto per un modo per farlo:
test_list = {test1, test2, test3};
ColList = dt << get column names( string, numeric );
Show( ColList );
dt << Stack(
columns( ColList ),
Source Label Column( "Label" ),
Stacked Data Column( "Data" ),
Number of Series( 3 ),
Contiguous
);
For( k = 1, k <= Length( test_list ), k++,
If( k = 1, countVar = "", countVar = char( k ) );
Variability Chart(
Y( As Column( "Data" || countVar ), //<<<<<<---------------------Here I try TODO something like Y(:(test_list[k]))...
X( As Column( "Label" || countVar ), //<<<<<<---------------------Here I try TODO something like X(:(test_list[k]))...
Max Iter( 100 ),
Conv Limit( 0.00000001 ),
Number Integration Abscissas( 128 ),
Number Function Evals( 65536 ),
Analysis Type(
Name( "Choose best analysis (EMS REML Bayesian)" )
),
Connect Cell Means( 1 ),
Std Dev Chart( 0 ),
Points Jittered( 1 ),
AIAG Labels( 0 )
)
);