JSL을 사용하여 영역의 투명도 변경안녕,
그룹화 변수를 사용하여 모델을 적합하고 예측 및 구간 수식을 표에 저장합니다. 그런 다음 원래 Y, 예측된 Y, LCL/UCL을 Y축에 배치하고 Wrap 기능을 사용하여 그룹화 변수를 포함하는 플롯을 생성합니다(아래 코드에서 예시를 참조하세요).
제가 원하는 것은 스크립팅을 통해 영역의 투명도를 특정 값으로 설정하는 것입니다. 범례에서 마우스 오른쪽 버튼을 클릭하여 변경할 수 있다는 것은 알고 있지만, 이는 사용자 입력을 받는 스크립트이기 때문에 열을 정적으로 호출하는 일반적인 "보고서로 보내기" 및 "발송" 기능을 사용할 수 없습니다.
<BR />Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Diamonds Data.jmp" );
mod = Fit Model(
Y( :Price ),
By( :Color ),
Effects( :Depth ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Screening" ),
Run(
:Price << {Summary of Fit( 0 ), Analysis of Variance( 0 ), Parameter Estimates( 1 ),
Sorted Estimates( 0 ), Plot Actual by Predicted( 1 ), Plot Regression( 0 ),
Plot Residual by Predicted( 1 )}
)
);
mod << prediction and interval formulas;
Graph Builder(
Size( 1163, 748 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables(
X( :Depth ),
Y( :Price ),
Y( :Pred Formula Price By Color, Position( 1 ) ),
Y( :Lower 95% Mean Price By Color, Position( 1 ) ),
Y( :Upper 95% Mean Price By Color, Position( 1 ) ),
Wrap( :Color ),
Overlay( :Color )
),
Elements(
Points( X, Y( 1 ), Legend( 7 ) ),
Line( X, Y( 2 ), Legend( 9 ) ),
Area( X, Y( 3 ), Y( 4 ), Legend( 10 ), Area Style( "Range" ), Transparency(0.25) )
)
);
자동화 및 스크립팅Re: JSL을 사용하여 영역 투명도 변경PolySeg를 찾은 다음 투명도를 설정할 수 있습니다.
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Diamonds Data.jmp");
mod = dt << Fit Model(
Y(:Price),
By(:Color),
Effects(:Depth),
Personality("Standard Least Squares"),
Emphasis("Effect Screening"),
Run(
:Price << {Summary of Fit(0), Analysis of Variance(0), Parameter Estimates(1),
Sorted Estimates(0), Plot Actual by Predicted(1), Plot Regression(0),
Plot Residual by Predicted(1)}
)
);
mod << prediction and interval formulas;
gb = dt << Graph Builder(
Size(1163, 748),
Show Control Panel(0),
Show Legend(0),
Variables(
X(:Depth),
Y(:Price),
Y(:Pred Formula Price By Color, Position(1)),
Y(:Lower 95% Mean Price By Color, Position(1)),
Y(:Upper 95% Mean Price By Color, Position(1)),
Wrap(:Color),
Overlay(:Color)
),
Elements(
Points(X, Y(1), Legend(7)),
Line(X, Y(2), Legend(9)),
Area(X, Y(3), Y(4), Legend(10), Area Style("Range"))
)
);
fbs = Report(gb) << XPath("//FrameBox");
For Each({fb}, fbs,
ps = fb << Find Seg(PolySeg(1));
If(!IsEmpty(ps),
ps << Transparency(0.25);
);
);