Swarmchart on a geoaxes

3 次查看(过去 30 天)
Michael Shagam
Michael Shagam 2022-6-11
回答: Ninad 2023-9-12
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?

回答(1 个)

Ninad
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.
You may go through the following documentation for better understanding: geoshow.
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.
Few more links you might find helpful: axesm, worldmap, usamap

类别

Help CenterFile Exchange 中查找有关 Geographic Plots 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by