大家好,
我想使用 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) 在图形生成器中实现一键选项以隐藏跳回线:
图形生成器:线 - 可以添加断点
这两个愿望多年来都收获了许多赞誉,所以让我们希望其中一个能够很快实现......