저널로 표 보내기 피하기나는 플롯을 만들 때 저널에 테이블을 보내지 않으려 고 노력하고 있습니다. 나는 조건을 "where"로 플롯에 설정하지만 플롯이 작성되지 않으면 테이블이 대상 오브젝트가됩니다.
dt = Open("$SAMPLE_DATA/Big Class.jmp");
plt1 = dt << Variability Chart(
Y( :height ),
X( :age ),
);
plt1 << journal; // send plot 1 to journal, works fine
plt2 = dt << Variability Chart(
Y( :height ),
X( :age ),
where(:age > 17)
);
plt2 << journal; // send plot 2 to journal, send the table instead of nothing일지에 표를 보내는 것을 피하는 우아한 방법은 무엇입니까?
이상적으로, plt가 실제로 플롯인지 확인하고 싶습니다.
런타임에이를 확인하는 방법이 있습니까?
If ("plt2 is a plot" , plt2 << journal);
재 : 표를 저널로 보내는 것을 피하십시오왜 그런지 모르겠지만 JMP가 변동성 차트에서 나오면 현재 데이터 테이블을 "dt"가 아닌 다른 것으로 설정했습니다. 전에이 동작을 보았으므로 방금 추가했습니다.
Current Data Table(dt);
문제를 해결 한 것으로 보입니다.
dt = Open("$SAMPLE_DATA/Big Class.jmp");
plt1 = dt << Variability Chart(
Y( :height ),
X( :age ),
);
plt1 << journal; // send plot 1 to journal, works fine
current data table(dt);
plt2 = dt << Variability Chart(
Y( :height ),
X( :age ),
where(:age > 13)
);
plt2 << journal; // send plot 2 to journal, send the table instead of nothing