@teoten,
One method is to create a stacked data table, stacking your variables and creating a placeholder column called Aggregate.
The Iris sample data table is not the best example, but here goes. The variables Petal Length and Width and Sepal Length and Width are stacked. An Aggregate column is created with value "All" then GraphBuilder can be deployed with one Y-variable the stacked data; and two X-variables, the (1)Group/variable names and the (2)Aggregate column.
Names Default to Here(1);
dt = open("$Sample_Data/Iris.jmp");
dt_stack = dt << Stack(
columns( :Sepal length, :Sepal width, :Petal length, :Petal width ),
Source Label Column( "Parameter" ),
Stacked Data Column( "Data" ),
Copy formula( 0 ),
Output Table Name("Iris Stacked")
);
//New column values are All
dt_stack << New Column("Aggregate", Character, <<set each value("All"));
gb_stack = dt_stack << Graph Builder(
Size( 558, 464 ),
Show Control Panel( 0 ),
Variables(
X( :Parameter ),
X( :Aggregate ),
Y( :Data ),
Group Y( :Species ),
Color( :Species )
),
Relative Sizes( "X", [222 90] ),
Elements(
Position( 1, 1 ),
Box Plot( X, Y, Legend( 18 ), Box Style( "Solid" ) )
),
Elements(
Position( 2, 1 ),
Box Plot( X, Y, Legend( 17 ), Box Style( "Solid" ) )
),
SendToReport(
Dispatch(
{},
"400",
LegendBox,
{Legend Position( {18, [3, -3, 4, 5, -3], 17, [0, -3, 1, 2, -3]} ),
Position( {3, -3, 4, 5, -3, 0, -3, 1, 2, -3} )}
)
)
);
I added two features, the relative spacing of X, and for the heck of it because it makes sense for this data set, I used Species as a Y Grouping factor and Color. See below. Good Luck.