Pase una variable que sea un nombre de columna a un gráfico de variabilidad YXHola,
Tengo un dato apilado cuyas columnas tienen nombres así:
Datos de la etiqueta, Etiqueta 2 Datos 2, Etiqueta 3 Datos 3 ... Etiqueta N Datos N
Intento forzar un gráfico de variabilidad a cada Etiqueta y su Datos a través de un bucle for. Pero mi problema es cómo pasar una variable cambiante (que es el nombre de la columna) a Y y X.
Esto es parte de mi Código:
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 />
Re: Pase una variable que es un nombre de columna a un gráfico de variabilidad YXTodo lo que tiene que hacer es generar los nombres de columna que desee para cada una de las iteraciones. Vea el código a continuación para una forma de hacer esto:
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 )
)
);