JMP 中的气泡图显示
按照 JMP 库中使用“卡特里娜数据”的示例,我为假设的飓风( 飓风_Hypo_1 )创建了一个新数据集,并生成了相应的气泡图。
但是,我遇到了两个问题:
- 路径显示:在我的绘图中,只显示一个移动的气泡,没有尾巴指示其轨迹。我怀疑这可能与动画或显示设置有关,但我一直无法解决。
- 固定参考点:我想在气泡移动的同时,在地图上显示四个固定坐标点,即 (-40, 5)、(-50, 10)、(-60, 15) 和 (-70, 20)。这些点代表设施,我打算直观地比较它们与飓风路径的距离。
如能提供关于如何解决这两个可视化问题的任何指导或建议,我们将不胜感激。
自动化和脚本数据探索与可视化回复:JMP 中的气泡图显示红色三角形菜单中有轨迹线

您可以使用图形脚本或注释工具添加它们

Marker Size(5);
Marker([-40, -50, -60, -70], [5, 10, 15, 20])

回复:JMP 中的气泡图显示感谢 Jarmo 的帮助。我已经使用注释工具在地图上标记了飓风路径并确定了三个关键基础设施。但是,我不确定如何使用图形脚本来编写这些元素(请参阅附件)。
我偶然发现了以下链接,但我不确定如何访问“自定义图表”选项以添加标记脚本。
创建气泡图的形状
https://www.jmp.com/support/help/en/18.0/?os=win&source=application#page/jmp/create-shapes-for-a-bubble-plot.shtml#
回复:JMP 中的气泡图显示右键单击图表,选择“自定义”,按“+”,然后就可以添加新的图形脚本了。这并非气泡图特有的功能,JMP 中的所有图表都适用。


回复:JMP 中的气泡图显示@madhu
您可以使用 JSL 命令“<< add graphics script”添加自定义图形(标记、文本、线条等)。脚本索引中有很多关于各种可能性的示例。
我根据 Jarmo 的建议更新了你的原始脚本。我想你应该能够根据你的具体脚本进行修改。

// assign the bubble plot to a variable<BR />bp = Bubble Plot(
X( :LON ),
Y( :LAT ),
Sizes( :WIND ),
Time( :Date ),
Coloring( :STAT ),
Title Position( -73.86, 8.76 ),
SendToReport(
Dispatch( {}, "LON", ScaleBox,
{Format( "Best", 9 ), Min( -81 ), Max( -39 ), Inc( 10 ),
Minor Ticks( 1 )}
),
Dispatch( {}, "LAT", ScaleBox,
{Scale( "Geodesic" ), Format( "Best", 9 ), Min( 2.25 ), Max( 33.75 ),
Inc( 5 ), Minor Ticks( 0 )}
),
Dispatch( {}, "Bubble Plot", FrameBox,
{Background Color( 73 ), Background Map(
Images( "Simple Earth" ),
Boundaries( "World" )
)}
)
)
);
<BR />// find the framebox in the bubble plot for the graphics script
fb = report( bp )[framebox(1)];
<BR />// add the custom script
fb << add graphics script(
Marker Size(5);
Marker([-40, -50, -60, -70], [5, 10, 15, 20]);
text(
{-40, 5}, "Station 1",
{-50, 10}, "Station 2",
{-60, 15}, "Station 3",
{-70, 20}, "Station 4",
)
);
现在您会注意到,当您右键单击>>自定义...时,此图形脚本已保存到图形中。

回复:JMP 中的气泡图显示
嗨,斯科特,
感谢您的留言。我按照您概述的步骤操作,但在运行脚本时使用了不同的站点(更新了坐标和名称)。很遗憾,脚本没有按预期运行。请参阅附件以供参考。
您能否帮我审查一下并告诉我哪里出了问题?
此致,
马杜
回复:JMP 中的气泡图显示Bubble Plot(
X( :LON ),
Y( :LAT ),
Sizes( :WIND ),
Time( :Date ),
Coloring( :STAT ),
Bubble Size( 19.8 ),
Time Index( 31.4000000000002 ),
Trail Bubbles( "All" ),
Trail Lines( "All" ),
Title Position( -73.1193700214385, 8.11202650369562 ),
SendToReport(
Dispatch( {}, "LON", ScaleBox,
{Format( "Best", 9 ), Min( -80 ), Max( -39.5257060084616 ), Inc( 10 ),
Minor Ticks( 1 )}
),
Dispatch( {}, "LAT", ScaleBox,
{Scale( "Geodesic" ), Format( "Best", 9 ), Min( 2.02558252288183 ),
Max( 32.3813030165356 ), Inc( 5 ), Minor Ticks( 0 )}
),
Dispatch( {}, "Bubble Plot", FrameBox,
{Background Map( Images( "Simple Earth" ), Boundaries( "World" ) )}
)
)
);
// find the framebox in the bubble plot for the graphics script
fb = report( bp )[framebox(1)];
// add the custom script
fb << add graphics script(
Marker Size(5);
Marker([-55, 62, -68], [15, 19, 22]);
text(
{-55, 15}, "Offshore Oil Platform",
{-62, 19}, "Floating LNG Terminal",
{-68, 22}, "Coastal Wind Farm",
)
);
回复:JMP 中的气泡图显示@madhu
您只需将第一行更改为:
bp = Bubble Plot(
“bp”是气泡图的变量名,将在脚本中进一步使用。

回复:JMP 中的气泡图显示现在一切正常。谢谢