Thanks MS,
I can see how this works now and I tweaked your script to not connect the ref. lines between groups. The way I scripted is not elegant, but it is functional. I will refine my script later to make the ref. lines table variables and add a for loop, like in your example.
dt = Open("$SAMPLE_DATA/Big Class.jmp");
vc = dt << Variability Chart(Y(:height), X(:age), Std Dev Chart(0));
// Define reflines;
//Build and eval graphics script expression
lineexpr1 = Expr(Line());
Insert Into(lineexpr1, Eval List({0, 55}));
Insert Into(lineexpr1, Eval List({1, 55}));
lineexpr2 = Expr(Line());
Insert Into(lineexpr2, Eval List({1, 60}));
Insert Into(lineexpr2, Eval List({2, 60}));
lineexpr3 = Expr(Line());
Insert Into(lineexpr3, Eval List({2, 65}));
Insert Into(lineexpr3, Eval List({3, 65}));
Eval(
Eval Expr(
Report(vc)[framebox(1)] << add graphics script(
Line Style("Dotted");
Pen Color("red");
Expr(Name Expr(lineexpr1));
Line Style("Dotted");
Pen Color("red");
Expr(Name Expr(lineexpr2));
Line Style("Dotted");
Pen Color("red");
Expr(Name Expr(lineexpr3));
)
)
);