Visualize data values at specific geographic locations
geobubble(
creates a geographic bubble chart with filled circles (bubbles) representing the geographic
locations specified in the table tbl
,latvar
,lonvar
)tbl
displayed on a map.
latvar
identifies the table variable (column) that specifies bubble
latitudes. lonvar
identifies the table variable that specifies bubble
longitudes. By default, the bubbles are all the same size and the same color.
The geographic bubble chart displays your data on a map, called a basemap. Initially, the chart sets the geographic limits of the chart to encompass all of your data. The map is live, that is, you can pan the basemap to view other geographic locations. You can also zoom in and out on the map to view regions in more detail. The chart updates the map as you pan and zoom. For more information about geographic bubble charts and basemaps, see Geographic Bubble Charts Overview.
geobubble(
uses the categorical data in lat
,lon
,sizedata
,colordata
)colordata
to determine the color of the
bubbles. geobubble
chooses a color for each category in
colordata
, plus one additional color if any element of
colordata
is undefined. Colors are drawn from an ordered list of 7
standard colors. If there are more than seven categories (more than six, if undefined values
are present), the colors repeat cyclically.
geobubble(___,
specifies additional options for the geographic bubble chart using one or more name-value
pair arguments. Specify the options after all other input arguments. For a list of
properties, see GeographicBubbleChart Properties. Two key
properties are Name,Value
)SizeVariable
and ColorVariable
,
which specify the table variables that determine the size and color of the bubbles.
geobubble(
creates the
geographic bubble chart in the figure, panel, tab, or tiled chart layout specified by
parent
,___)parent
.
returns the
gb
= geobubble(___)GeographicBubbleChart
object. Use gb
to modify
properties of the chart after creating it. For a list of properties, see GeographicBubbleChart Properties.
If you create a geographic bubble chart from a table, then you can customize its data tips.
To add or remove a row from the data tip, right-click anywhere on the chart and point to Modify Data Tips. Then, select or deselect a variable.
To add or remove multiple rows, right-click on the chart, point to Modify Data Tips, and select More. Then, add variables by clicking >> or remove them by clicking <<.
To bring focus to a geographic bubble chart programmatically, use the
axes
function, axes(gb)
.
categorical
| geobasemap
| geodensityplot
| geolimits
| geoplot
| geoscatter
| readtable
| table