大家好,
我想使用 Graph Builder 建立這樣的圖表(從 Fit Curve 溶離模型免費比較報告複製)

我似乎無法在圖形生成器中做到這一點。有什麼建議嗎?
圖表需要顯示每條曲線(在資料表中指定為CurveID)。
圖形需要按組(Curve Group)顯示平均曲線。
誤差線不是必需的,但如果有就更好了。
更進一步,操縱圖形顏色和透明度:

使用 JMP 18.1.2,以下是重新建立的腳本
Graph Builder(
Size( 929, 685 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables(
X( :X ),
Y( :Y ),
Group X( :Curve Group ),
Overlay( :CurveID ),
Color( :Curve Group )
),
Elements(
Points( X, Y, Legend( 11 ) ),
Line( X, Y, Legend( 13 ) ),
Line(
X,
Y,
Overlay( 0 ),
Legend( 16 ),
Error Interval( "Standard Deviation" )
)
),
SendToReport(
Dispatch( {}, "400", ScaleBox,
{Legend Model(
11,
Properties( 2, {Marker( "Dot" )}, Item ID( "1", 1 ) ),
Properties(
3,
{Marker( "Dot" ), Transparency( 0.5 )},
Item ID( "2", 1 )
),
Properties(
4,
{Marker( "Dot" ), Transparency( 0.5 )},
Item ID( "3", 1 )
),
Properties(
5,
{Marker( "Dot" ), Transparency( 0.5 )},
Item ID( "4", 1 )
),
Properties(
6,
{Marker( "Dot" ), Transparency( 0.5 )},
Item ID( "5", 1 )
),
Properties(
7,
{Marker( "Dot" ), Transparency( 0.5 )},
Item ID( "6", 1 )
)
), Legend Model(
13,
Properties( 0, {Transparency( 0.5 )}, Item ID( "A", 1 ) ),
Properties( 1, {Transparency( 0.5 )}, Item ID( "B", 1 ) ),
Properties( 2, {Transparency( 0.5 )}, Item ID( "1", 1 ) ),
Properties(
3,
{Line Style( "Solid" ), Transparency( 0.5 )},
Item ID( "2", 1 )
),
Properties(
4,
{Line Style( "Solid" ), Transparency( 0.5 )},
Item ID( "3", 1 )
),
Properties(
5,
{Line Style( "Solid" ), Transparency( 0.5 )},
Item ID( "4", 1 )
),
Properties(
6,
{Line Style( "Solid" ), Transparency( 0.5 )},
Item ID( "5", 1 )
),
Properties(
7,
{Line Style( "Solid" ), Transparency( 0.5 )},
Item ID( "6", 1 )
)
), Legend Model(
16,
Properties(
2,
{Line Color( 0 ), Line Width( 4 )},
Item ID( "Mean", 1 )
)
)}
),
Dispatch( {}, "", GraphBuilderContainerBox, {Select} ),
Dispatch( {}, "Graph Builder", FrameBox( 2 ),
{DispatchSeg( BarSeg( 1 ), {Line Width( 3 )} )}
),
Dispatch( {}, "400", LegendBox,
{Legend Position(
{11, [-3, -3, -1, -1, -1, -1, -1, -1], 13, [-1, -1, -1, -1, -1, -1,
-1, -1], 16, [-3, -3, 0, -3]}
)}
)
)
);相關文章: 圖形產生器。如何將平滑器與線條結合?
這是一種相當標準的圖表類型——不幸的是,這種類型的圖表 JMP 遠遠落後於其他工具。
有一些創意的解決方法,例如重新格式化資料表(新增列、新增虛擬行)或重新格式化圖形(按行順序繪製並透過將不透明度設為 0 來隱藏反向跳轉, 原始貼文來自@XanGregg )
一個例子:
dt = Open( "$DOWNLOADS/example curve data.jmp" );
dt:X << Set Modeling Type( "Continuous" );
New Column( "falling X",
Character,
Formula( If( :X - Lag( :X ) < 0, "", :Curve Group ) ),
);
Graph Builder(
Size( 518, 448 ),
Show Control Panel( 0 ),
Summary Statistic( "Median" ),
Graph Spacing( 4 ),
Variables(
X( :X ),
Y( :Y ),
Overlay( :Curve Group ),
Color( :falling X )
),
Elements(
Line( X, Y, Legend( 6 ), Ordering( "Row Order" ) ),
Line( X, Y, Color( 0 ), Legend( 7 ) )
),
SendToReport(
Dispatch( {}, "400", ScaleBox,
{Legend Model(
6,
Properties( 0, {Transparency( 0 )}, Item ID( "Missing", 1 ) ),
Properties( 1, {Transparency( 0.5 )}, Item ID( "A", 1 ) ),
Properties( 2, {Transparency( 0.5 )}, Item ID( "B", 1 ) )
), Legend Model(
7,
Properties( 0, {Line Color( 3 )}, Item ID( "A", 1 ) )
)}
)
)
);

真正的解決方案:
一個)圖形產生器 - 多列疊加 :
b) 在圖形產生器中實作一鍵選項以隱藏跳迴線:
圖形產生器:線 - 可以新增斷點
這兩個願望多年來都收穫了許多讚譽,所以讓我們希望其中一個很快就能實現...