좋은 아침이에요,
열 선택기를 사용할 때 분포 플랫폼의 히스토그램에 기준선(평균선)을 추가하려면 어떻게 해야 하나요? 10개 변수 각각에 대해 이 선을 추가하고 싶은데, 당연히 수동으로 추가하는 것은 피하고 싶습니다.
미리 감사드립니다.
장 뤽
다음은 JSL 옵션의 몇 가지 예입니다(이러한 옵션을 사용하는 방법은 매우 다양합니다).
그래픽 스크립트 옵션의 예시:
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
dist = dt << Distribution(
Continuous Distribution(
Column(:height),
Always use column properties(1),
Process Capability(0)
),
Column Switcher(:height, {:height, :weight})
);
Report(dist)[FrameBox(1)] << Add Graphics Script(Function({this},
m = ((this << Top Parent)[OutlineBox("Summary Statistics"), Number Col Box(1)] << get)[1];
Pen Color("Purple");
Pen Size(5);
H Line(m);
));
컬럼 전환 핸들러의 예시:
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
dist = dt << Distribution(
Continuous Distribution(
Column(:height),
Always use column properties(1),
Process Capability(0)
)
);
cw = dist << Column Switcher(:height, {:height, :weight});
post = Function({previousColumn, currentColumn, switcher},
prevm = Col Mean(previousColumn);
m = Col Mean(currentColumn);
axisbox = Report(dist)[axis box(1)];
Try(axisbox << Remove Ref Line(prevm));
axisbox << Add Ref Line(m, "Dashed", blue, "Mean", 2);
wait(0);
);
handler = cw << Make Column Switch Handler(Empty(), post);