我想將一些結果與標準消耗曲線進行比較。我想繪製期望值曲線並對兩條置信區間曲線之間的區域進行著色。有誰知道我該怎麼做?
非常感謝,
約翰
@約翰摩爾
自從@馬克貝利說他很忙,我想我應該添加另一個選項:
- 如果您有平均曲線的標準和預測或單個值的預測列,您可以使用圖形生成器區域元素來構建圖形。
- 您還可以使用列變換來創建臨時列,這有點混亂,因為預測曲線需要標準誤差公式,這在變換公式中有點混亂。 請注意,標準公式應限制預測範圍並根據標準使用適當的自由度。
下面的示例和腳本是使用 option#1 的 GraphBuilder 功能的簡單示例

Names Default to Here(1);
//Note the Elements order is important, the last one will be on top, the first in the background
dt = open("c:\temp\BigClass_StandardCI.jmp");
gb = dt << Graph Builder(
Size( 534, 454 ),
Show Control Panel( 0 ),
Variables(
X( :height ),
Y( :Standard ),
Y( :Lower 95% Standard, Position( 1 ) ),
Y( :Upper 95% Standard, Position( 1 ) ),
Y( :New Curve, Position( 1 ) ),
Y( :weight, Position( 1 ) )
),
Elements(
Line( X, Y( 1 ), Legend( 1 ) ),
Area( X, Y( 2 ), Y( 3 ), Legend( 2 ), Area Style( "Range" ) ),
Points( X, Y( 5 ), Legend( 3 ) ),
Line Of Fit( X, Y( 4 ), Legend( 4 ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
1,
Level Name( 0, "Standard", Item ID( "Mean(Standard)", 1 ) ),
Properties( 0, {Line Width( 3 )}, Item ID( "Mean(Standard)", 1 ) )
), Legend Model(
2,
Properties(
0,
{Transparency( 0.4 )},
Item ID(
"Mean(Lower 95% Standard)..Mean(Upper 95% Standard)",
1
)
)
), Legend Model(
4,
Properties( 0, {Line Width( 3 )}, Item ID( "New Curve", 1 ) )
)}
),
Dispatch(
{},
"Y title",
TextEditBox,
{Set Text( "Weight Curve vs Standard" )}
),
Dispatch(
{},
"400",
LegendBox,
{Legend Position( {1, [0], 2, [-1], 3, [2], 4, [1, -3]} ),
Position( {0, -1, 2, 1, -3} )}
)
)
);我現在太忙,無法制定完整的解決方案,但又不太忙,無法“開始行動”。
如果公式獨立於數據並且是預先確定的,則可以將一個或多個圖形腳本添加到圖形生成器中的框架框中,以提供所需的視覺參考。 我不知道圖形腳本是在圖形生成器繪製其自己的圖形元素之前還是之後運行。
異常,
感謝您的回复。我想引用的標準曲線將是獨立於我正在繪製的數據的公式列。因此,在圖表的背景中,我想顯示標準期望值曲線以及標準曲線的置信上限和下限。在此之前,我想繪製數據,以便我們可以看到“是”與“應該是”的比較
約翰