Goal: To script Bivariate plots of three Ys using a BY variable as the outer loop.
Interactively it is easy: Fit Y by X. Select the three Y columns, Select X. Select the BY variable, in my case "Species".
The resulting Bivariate plots are grouped with the Y(1), Y(2), Y(3) by X plots together for each BY value.
Scripting: I only found inserting BY within each platform call. My try is:
Bivariate( Y( :Name( “Y(1)” ) ), X( :X ), By( :Species) ),
Bivariate( Y( :Name( “Y(2)” ) ), X( :X ), By( :Species) ),
Bivariate( Y( :Name( “Y(3)” ) ), X( :X ), By( :Species) ),
<<{Arrange in Rows( 1 )}
But the grouping is now Y(1) vs X for all values of Species, then Y(2) for all values of Species, etc.
How can I put the BY variable as the outer loop? The script created from the interactive version is not general, i.e., instead of a BY variable, it explicitly uses WHERE (:Species == "rat"), etc. The options for the BY variable change with each data set so cannot be explicitly declared using WHERE.