I am using jmp script to draw X-Y scatter plots.
Can I add fitting lines by group using JMP scripts too?
here is sample of the script I copied:
Bivariate(
Y( :Height ),
X( :Age ),
Fit Where( :HDDt == "Schoo_A", Fit Line( {Line Color( {213, 72, 87} )} ) ),
Fit Where( :HDDt == "School_B", Fit Line( {Line Color( {64, 111, 223} )} ) )
)
If next time, I have 3 groups, School_A, School_B, School_C, do I have to manually add the
3rd fitting line, and choose the colors? I am hoping JMP script can choose color based on # of groups.
Thanks,
Qian