Swarmchart on a geoaxes

4 Ansichten (letzte 30 Tage)
Michael Shagam
Michael Shagam am 11 Jun. 2022
Beantwortet: Ninad am 12 Sep. 2023
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?

Antworten (1)

Ninad
Ninad am 12 Sep. 2023
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

Kategorien

Mehr zu Geographic Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by