图形生成器上的阴影我有一张随时间变化的图表。 在每个时间点,我计算一个点估计,并且对于每个点估计,我计算一个下置信区间值和上置信区间值。 这给出了每个时间点的范围,但随着时间的推移,它也会变得更窄,因为随着时间的推移,我拥有更多的数据。
附上一些数据的示例和我在图形生成器中创建的图表。
是否有一种编码方法可以在区间估计覆盖的区域中进行着色? 
我附上了一个 PNG 文件,希望能够清楚地表达我的意思。 (黄色将从时间段的开始延伸到结束。)
如果有人能提供帮助那就太好了。
谢谢!
回复:图形生成器中的阴影大家好,
尽管它已经过去两周了,但今天才引起了我的注意。我没有看到为区域/范围元素附加任何脚本,因此我添加了一个。这是将范围图与转换后的列相结合的轻微修改。 请注意,元素顺序允许阴影位于背景中。
有趣的讨论!
dt = current data table();
gb = dt << Graph Builder(
Size( 531, 454 ),
Show Control Panel( 0 ),
Variables(
X( :Index ),
Y( :Point estimate ),
Y( :Lower, Position( 1 ) ),
Y( :Upper, Position( 1 ) ),
Y(
Transform Column(
"Transform[Lower]",
Formula( If( :Index >= 20, :Lower ) )
),
Position( 1 )
),
Y(
Transform Column(
"Transform[Upper]",
Formula( If( :Index >= 20, :Upper ) )
),
Position( 1 )
)
),
Elements(
Area( X, Y( 4 ), Y( 5 ), Legend( 1 ), Area Style( "Range" ) ),
Points( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 4 ) ),
Line( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 6 ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
1,
Level Name(
0,
"Recent Range",
Item ID( "Transform[Lower]..Transform[Upper]", 1 )
),
Properties(
0,
{Line Color( 9 ), Fill Color( 9 ), Transparency( 0.5 )},
Item ID( "Transform[Lower]..Transform[Upper]", 1 )
),
Properties(
-1,
{Line Color( 9 ), Fill Color( 9 ), Transparency( 0.5 )},
Item ID( "Recent Range", 1 )
)
), Legend Model(
6,
Properties( 2, {Line Color( 19 )}, Item ID( "Upper", 1 ) )
)}
)
)
);
回复:图形生成器中的阴影您可以使用我上面的解决方案来做到这一点,并将多边形限制为大于 20 的值。
或者,即使我没有完成以下工作,我假设可以将第二组值添加到图形生成器图表中,该值只会有超过 20 的重复值,然后叠加可以让您将其设为区域显示。
回复:图形生成器中的阴影稍后再说——这是一个很好的解决方案,并揭示了一些我不知道的有关 JMP 的事情。 一个后续问题。
您将如何调整该区域,使其仅覆盖图形的一部分? 对于提供的示例数据集,假设我只想为索引值 >20 而不是所有值设置黄色区域。 不知道你会如何在这里做到这一点。
回复:图形生成器中的阴影@tx尼尔森: 不同的情况有不同的解决办法... :D
...而且我始终赞成推广图形脚本和使用自定义菜单。
中号
回复:图形生成器中的阴影谢谢。 伟大的!回复:图形生成器中的阴影比我的解决方案好得多......人们每天都能在 JMP 中学到新东西
回复:图形生成器中的阴影您还可以通过使用带有范围选项的区域在图形生成器中执行此操作。 只需将您的 UCL、估算和 LCL 添加到 Y 轴即可。 通过将图标拖动到图形区域来添加区域图。 然后在左侧控件中将区域样式更改为范围。 缺失因素下拉列表下方是变量的大纲项目。 打开大纲项并取消选中“估计”。 这将使显示的范围基于 UCL 和 LCL。 如果范围超出了图表中的线条,您可以右键单击图表中的范围,然后选择“区域”>“向后移动”。 从那里您可以通过双击图例来调整颜色、透明度等。
中号
中号回复:图形生成器中的阴影谢谢,吉姆!
回复:图形生成器中的阴影您可以通过添加任何类型的图形到图形生成器输出
添加图形脚本
项目到您的平台。请参阅下面的脚本:

dt=current data table();
Graph Builder(
Size( 531, 454 ),
Show Control Panel( 0 ),
Variables(
X( :Index ),
Y( :Point estimate ),
Y( :Lower, Position( 1 ) ),
Y( :Upper, Position( 1 ) )
),
Elements(
Points( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 3 ) ),
Line( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 5 ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
3,
Base( 0, 0, 0, Item ID( "Point estimate", 1 ) ),
Base( 1, 0, 0, Item ID( "Lower", 1 ) ),
Base( 2, 0, 0, Item ID( "Upper", 1 ) ),
Properties( 0, {Line Color( 0 )}, Item ID( "Point estimate", 1 ) ),
Properties( 1, {Line Color( 0 )}, Item ID( "Lower", 1 ) ),
Properties( 2, {Line Color( 0 )}, Item ID( "Upper", 1 ) )
), Legend Model(
5,
Properties( 0, {Line Color( 0 )}, Item ID( "Point estimate", 1 ) ),
Properties( 1, {Line Color( 0 )}, Item ID( "Lower", 1 ) ),
Properties( 2, {Line Color( 0 )}, Item ID( "Upper", 1 ) )
)}
),
Dispatch(
{},
"Graph Builder",
FrameBox,
{Add Graphics Script(
2,
Description( "Script" ),
dt = Current Data Table();
yMatrix = dt:upper << get values |/
Matrix( Reverse( As List( dt:lower << get values ) ) );
xMatrix = dt:index << get values |/
Matrix( Reverse( As List( dt:index << get values ) ) );
Fill Color( "yellow" );
Polygon( xMatrix, yMatrix );
), Grid Line Order( 1 ), Reference Line Order( 3 )}
)
)
);