避免將表格發送到期刊當我創建情節時,我試圖避免向期刊發送表格。我在繪圖上設置了“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