Swarmchart on a geoaxes

3 visualizzazioni (ultimi 30 giorni)
Michael Shagam
Michael Shagam il 11 Giu 2022
Risposto: Ninad il 12 Set 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?

Risposte (1)

Ninad
Ninad il 12 Set 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

Categorie

Scopri di più su Geographic Plots in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by