JMP 中的氣泡圖顯示
按照 JMP 庫中使用「卡崔娜資料」的範例,我為假設的颶風( Hurricane_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 中的氣泡圖顯示現在一切正常。謝謝