JSL은 그래프에 선을 만듭니다.안녕하세요,
그래서 저는이 스크립트와 같은 빨간 선을 만들려고합니다.
Names Default To Here( 1 );
dt = Current Data Table();
listX = {"1"};
listY = {"test1", "test2", "test3"};
lowLine = 3;
highLine = 5;
bivExpr = Expr(
Bivariate(
Y( Eval List( listY ) ),
X( Eval List( listx ) ),
Fit Spline( 1, Standardized, {Line Color( "Blue" )} ),
SendToReport(
Dispatch(
{},
"Bivar Plot",
FrameBox,
{Add Graphics Script(
2,
Description( "Script" ),
Pen Color( "Red" );
Line Style( "dashed" );
X Function( lowLine, x );
X Function( highLine, x );
), Grid Line Order( 1 ), Reference Line Order( 3 )}
)
)
)
);
bivExpr;내 테이블 DT는 다음과 같습니다.
| 그룹 | test1 | test2 | test3 | 1 | 1 |
| BL | 1 | 1 | 1 | 1 | 1 |
| BL | 2 | 2 | 2 | 2 | 65 |
| BL | 23 | 삼 | 6 | 1 | 1 |
| POR | 2 | 2 | 2 | 2 | 2 |
| 가치 1 | 1 | 1 | 1 | 삼 | 4 |
| POR | 5 | 7 | 2 | 2 | 2 |
| 가치 1 | 7 | 5 | 1 | 7 | 삼 |
| 가치 2 | 2 | 2 | 2 | 2 | 2 |
| 가치 0 | 8 | 1 | 1 | 1 | 6 |
결과:

내 질문은 각 그래프에 대해 다른 선을 어떻게 만들 수 있습니까?
감사!
스크립팅Re : JSL은 그래프에 선을 만듭니다.참 조선을 사용하는 것이 이것을 처리하는 방법입니다.

Names Default To Here( 1 );
dt = Current Data Table();
listX = {"1"};
listY = {"test1", "test2", "test3"};
lowList = {3, 2, 1};
highList = {5, 7, 9};
lowLine = 3;
highLine = 5;
bivExpr = Expr(
biv = Bivariate(
Y( Eval List( listY ) ),
X( Eval List( listx ) ),
Fit Spline( 1, Standardized, {Line Color( "Blue" )} )
);
For( i = 1, i <= N Items( listY ), i++,
Report( biv[i] )[AxisBox( 2 )] << add Ref Line( lowList[i], "Dashed", "Red" );
Report( biv[i] )[AxisBox( 2 )] << add Ref Line( highList[i], "Dashed", "Red" );
);
);
bivExpr;