Hi - I've created a Scatterplot Matrix in JSL by supplying it with a list of variables to plot as shown below. "Yvars_List" is just a list of the names of the variables that I want to plot against one another, so a typical list might be something like {"Height", "Weight", "Shoesize"}. I have a list of maybe fifty other variables that I could plot instead, so I want to be able to substitute any other list I might assemble within a control panel I've written for the purpose; that is, I want to replace the existing list with a new one, so that the scatterplot matrix immediately updates. (There's no guarantee that the new list will have the same number of elements as the old one, although there will always be at least two variables in the list for obvious reasons.)
In the Graph Builder I would have used a combination of << Remove Variable(...), << Add Variable(...), << Remove Element(...) and/or << Add Element(...) to achieve that, but this is not the Graph Builder. How can I do this, please?
SM = Scatterplot Matrix(
Y( eval( Yvars_List ) ),
Matrix Format( "Lower Triangular" ),
SendToReport(
Dispatch( {}, "Scatterplot Matrix Plot", FrameBox, {Frame Size( 164, 141 )} )
)
)
Many thanks for any help provided.