Swarmchart on a geoaxes
조회 수: 3 (최근 30일)
이전 댓글 표시
I want to visualize some statistical data on a map. I'm thinking something like these 3D barcharts over a map, but as a swarmchart3() where the x and y axes are the latitude and longitude with a map shown, and the z axis is the distributed value. Unfortunately in matlab you cannot plot cartesian scatter data into a geoaxes(). I'm working from tables with ~9 million unique entries.
Any clever tips?
댓글 수: 0
답변 (1개)
Ninad
2023년 9월 12일
Hi Michael,
As per my understanding, you aim to visualize statistical data on a map in MATLAB using a swarm chart or 3D scatter plot.
You may try using the `geoshow` function to visualize your data.
The `geoshow(lat, lon, Z)` function in MATLAB is used to project and display a geolocated data grid, represented by the array `Z`. The `lat` and `lon` parameters are M-by-N arrays that contain the latitude and longitude coordinates for each grid point. The `Z` array is an M-by-N array of type double, which represents the data values associated with each grid point. Additionally, you can customize the display by specifying the desired `DisplayType` using name-value pair arguments, such as surface, mesh, texture map, or contour.
Before using the `geoshow` function to display data on a map in MATLAB, it is necessary to create the map itself. This can be done by using one of the following functions: `axesm`, `worldmap `, or `usamap `. These functions set up the map projection and coordinate system on the axes, allowing you to correctly visualize and overlay your data using the `geoshow` function.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Geographic Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!