3100_zh-TW
如何在圖表上顯示Show Grand Mean?我已經創建了一個可變性圖表,但有沒有辦法繞過最終的Show Grand Mean?默認為10個小數位,可以水平拉伸圖表。我希望它能夠說2位小數:
chartVar =可變性圖表(
Y(:y值),
X(:x值),
顯示意思,
...
任何幫助讚賞。thx,dj回覆:如何在圖表上四捨五入顯示平均值?很遺憾,我不知道如何更改總體平均值的註釋,但也許你可以完全刪除註釋,然後在圖表本身上添加註釋。我在下面做了與最近另外兩個相關查詢相同的操作:
style="font-size: 9pt; font-family: "Courier New"; color: black;">
樣式="">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
樣式="">
style="font-size: 9pt; font-family: "Courier New"; color: black;">dt
style="font-size: 9pt; font-family: "Courier New"; color: navy;">=
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">打開
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: purple;">"$SAMPLE_DATA/Quality
控制/塗層.jmp”
style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
樣式="">
style="font-size: 9pt; font-family: "Courier New"; color: green;">/*
創建基本可變性
圖表 */
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
樣式="">
style="font-size: 9pt; font-family: "Courier New"; color: black;">vc
style="font-size: 9pt; font-family: "Courier New"; color: navy;">=
style="font-size: 9pt; font-family: "Courier New"; color: black;">
變異性圖表(
style="font-size: 9pt; font-family: "Courier New"; color: black;">
樣式="">
是(
style="font-size: 9pt; font-family: "Courier New"; color: navy;">:
style="font-size: 9pt; font-family: "Courier New"; color: black;">重量
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
樣式="">
X (
style="font-size: 9pt; font-family: "Courier New"; color: navy;">:
style="font-size: 9pt; font-family: "Courier New"; color: black;">範例
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
樣式="">
標準
開發圖表(
style="font-size: 9pt; font-family: "Courier New"; color: teal;">0
style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
樣式="">
展示
大平均值
style="font-size: 9pt; font-family: "Courier New"; color: black;">
樣式="">
)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: green;">//
vc << 顯示樹
結構;//找出所有東西的位置;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">vcr
style="font-size: 9pt; font-family: "Courier New"; color: navy;">=
style="font-size: 9pt; font-family: "Courier New"; color: black;">
創投
style="font-size: 9pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">報告
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">vcr [ FrameBox (
style="font-size: 9pt; font-family: "Courier New"; color: teal;">2
style="font-size: 9pt; font-family: "Courier New"; color: black;">)]
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 9pt; font-family: "Courier New"; color: black;">
刪除
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: green;">//
此物件是
浪費空間,所以刪除它;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: green;">//
然後對圖表進行註釋(
是報告中的 FrameBox(1) );
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">ymax
style="font-size: 9pt; font-family: "Courier New"; color: navy;">=
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">最大
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">列
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: black;">dt
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: purple;">"重量"
style="font-size: 9pt; font-family: "Courier New"; color: black;">)
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 9pt; font-family: "Courier New"; color: black;">
獲取值)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">GM
樣式="">
style="font-size: 9pt; font-family: "Courier New"; color: navy;">=
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">平均值
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">列
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: black;">dt
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: purple;">"重量"
style="font-size: 9pt; font-family: "Courier New"; color: black;">)
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 9pt; font-family: "Courier New"; color: black;">
獲取值)
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">vcr [ FrameBox (
style="font-size: 9pt; font-family: "Courier New"; color: teal;">1
style="font-size: 9pt; font-family: "Courier New"; color: black;">)]
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: navy;"><<
style="font-size: 9pt; font-family: "Courier New"; color: black;">
新增圖形
腳本(
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">文本
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: black;">盒裝
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
已擦除
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
{
style="font-size: 9pt; font-family: "Courier New"; color: teal;">0.25
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
ymax }
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
(
style="font-size: 9pt; font-family: "Courier New"; color: purple;">"
平均值 = "
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: navy;">||
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">char
style="font-size: 9pt; font-family: "Courier New"; color: black;">(
style="font-size: 9pt; font-family: "Courier New"; color: black;">GM
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: teal;">10
style="font-size: 9pt; font-family: "Courier New"; color: navy;">,
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: teal;">2
style="font-size: 9pt; font-family: "Courier New"; color: black;">)
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: navy;">||
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: purple;">"
“
style="font-size: 9pt; font-family: "Courier New"; color: black;">)))
style="font-size: 9pt; font-family: "Courier New"; color: navy;">;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="font-size: 9pt; font-family: "Courier New"; color: green;">//
程序結束;
style="font-size: 9pt; font-family: "Courier New"; color: black;">
回覆:如何在圖表上四捨五入顯示平均值?實際上,我想我可能剛剛找到了解決原始問題的方法。總平均值報告的小數位數似乎是根據原始資料列格式的小數位數加二計算得出的——例如,如果原始資料表中列的格式為“固定十進制(10, 3)”,則總平均值將報告為3+2=5位。因此,為了使總平均值只報告兩位小數,請將格式變更為“固定十進制”,不保留小數位。回覆:如何在圖表上四捨五入顯示平均值?好發現! (2025年了,哈哈,真是感激不盡)
Comments
There are no comments yet