I'm trying to automate a few bivariate plots but I'm running into an issue trying to change the row legends.
Here is an example of what I'm trying to do:
Open("$SAMPLE_DATA/Big Class.jmp");
variables = {"age", "sex"};
for(v=1,v<=nitems(variables),v++,
::var = variables[v];
biv = Bivariate( Y( :height), X( :weight),
group by(as column(::var)),
Fit Spline( 1, Standardized, {Line Width( 2 )} ));
Report( biv )[Frame Box(1)] << Row Legend( ::var, color(1), marker(1));
); My expected output would be two windows with identical plots - one with a spline fit and legend for age and another with a spline fit legend for sex. The spline fits are working as expected, but the row legend command is not recognizing my variable. What am I missing?
Thanks in advance!