tableau可視化
When working with geospatial data, it’s often useful to visually inspect the data on a map. In this tutorial, we will be using real cellphone geospatial data from the Government of Catalonia. The data is available and hosted on Google’s Public Datasets.
處理地理空間數據時,通常在視覺上檢查地圖上的數據很有用。 在本教程中,我們將使用加泰羅尼亞政府提供的真實手機地理空間數據。 數據可用並託管在Google的公開數據集上。
If you’re not familiar with Google Cloud, please check out my Level Up with Google’s Public Datasets tutorial to access Catalonia Cell Coverage Dataset.
如果您不熟悉Google Cloud,請查看我的Google公開數據集升級教程,以訪問Catalonia細胞覆蓋率數據集 。
(Importing Data)
Once the data is loaded into Tableau, we can see mobile data has many records of geospatial information. Let’s dive into Tableau to visualize.
將數據加載到Tableau中後,我們可以看到移動數據具有許多地理空間信息記錄。 讓我們深入Tableau進行可視化。
Our first step is to convert Lat and Long from Measures to Dimensions. By converting Lat and Long into Dimensions, we tell Tableau to treat each record separately and not aggregate them.
我們的第一步是將緯度和經度從“度量”轉換為“尺寸”。 通過將緯度和經度轉換為維度,我們告訴Tableau分別對待每條記錄,而不是將它們彙總。
Next, we’ll double-click Lat and Long to load the data onto the map. As we can see, the cellular data is global, but mostly concentrated in Europe, especially Spain. This is because the data is provided by the Government of Catalonia, which is located in Barcelona, Spain.
接下來,我們將雙擊緯度和經度以將數據加載到地圖上。 可以看到,蜂窩數據是全球性的,但主要集中在歐洲,尤其是西班牙。 這是因為數據由位於西班牙巴塞羅那的加泰羅尼亞政府提供。
(Modify Plot Settings)
Zooming into Barcelona, Spain, we can see a plethora of geospatial cellphone data from our dataset. There seems to be a lot of overlapping data points, which prevents us to fully visualize the granular detail in Barcelona.
放大到西班牙的巴塞羅那,我們可以從數據集中看到大量的地理空間手機數據。 似乎有很多重疊的數據點,這使我們無法完全可視化巴塞羅那中的細化細節。
To better visualize the data, we can reduce the size of each data point.
為了更好地可視化數據,我們可以減小每個數據點的大小。
Furthermore, we can change the color and decrease opacity to 20%. With a 20% opacity, solid color on the map means that there are 5 overlapping data points
此外,我們可以更改顏色並將不透明度降低到20%。 不透明度為20%時,地圖上的純色表示有5個重疊的數據點
可視化隨時間變化的運動 (Visualize Movement Over Time)
Since our data is time series, we can take advantage of Tableau’s Pages function to animate the map. Click and drag the Date dimension to Pages and change the detail level to continuous DAY.
由於我們的數據是時間序列,因此我們可以利用Tableau的Pages函數來對地圖進行動畫處理。 單擊並將日期維度拖動到頁面,然後將詳細信息級別更改為連續的DAY。
A new control pane will show up next to the map. Click the right triangle and the map will animate forward in time.
新的控制窗格將顯示在地圖旁邊。 單擊直角三角形,地圖將及時向前動畫。
Voilà! You’ve just successfully animated and visualized cellphone geospatial in Barcelona, Spain using Tableau.
瞧! 您已經使用Tableau在西班牙巴塞羅那成功地成功製作了動畫和可視化的手機地理空間。
Using a Dark Style in Tableau Map Layer 在Tableau地圖層中使用深色樣式
支持 (Support)
Thank you for checking out my tutorial! A few shares go a long way!
感謝您查看我的教程! 幾股大有幫助!
Interested in other cool tech? Check out my tutorial on Getting Started with Jupyter + Spark on the Cloud in 2020
對其他炫酷技術感興趣? 查看我的2020年Jupyter + Spark on Cloud入門教程
翻譯自: https://towardsdatascience.com/visualize-cellphone-mobility-in-barcelona-spain-using-tableau-e3f7ab99d7e9
tableau可視化