GeoDensityPlot
GeoDensityPlot[{loc1val1,loc2val2,…}]
makes a geo density plot with colors at the location loci determined by the value vali.
GeoDensityPlot[locsvals]
uses a collection of locations locs with corresponding values vals.
Details and Options




- GeoDensityPlot is also known as a heat map and thematic map.
- GeoDensityPlot displays values at the given geo locations as smoothly varying colors over the map.
- The geographic locations loci can be given in the following forms:
-
GeoPosition[{lat,lon}] latitude and longitude Entity[…] geographic entity Dated[ent,date] dated entity - Multiple locations locs can be given in the following forms:
-
{loc1,loc2,…} list of individual locations GeoPosition[{pos1,pos2,…}] array of geo positions EntityClass[…] class of geo entities - The values vali can be given in the following forms:
-
vali positive number Quantity[vali,unit] magnitude with units - Multiple values vals can be given in the following forms:
-
{val1,val2,…} list of individual values QuantityArray[{val1,val2,…},unit] array of quantities - In GeoDensityPlot[data], data can be given in the following forms:
-
<loc1val1,loc2val2,… > association of keys and values GeoPosition[{{lat1,lon1,elev1},…}] geo positions with elevations as the values WeightedData[…] positions with weights for values {{val11,val12,…},…} gridded data with the geo range provided by DataRange - GeoDensityPlot has the same options as GeoGraphics, with the following additions and changes:
-
BoundaryStyle None how to draw RegionFunction boundaries BoxRatios Automatic effective 3D bounding box ratios ClippingStyle None how to draw values clipped by PlotRange ColorFunction Automatic how to color the plot ColorFunctionScaling True whether to scale the argument to ColorFunction DataRange Automatic the range of lat and lon values to assume for data InterpolationOrder None the polynomial degree in each variable of the interpolated density between data points LightingAngle None effective angle of the simulated light source MaxPlotPoints Automatic the maximum number of points to include Mesh None how many mesh lines in each direction to draw MeshFunctions {#1&,#2&} how to determine the placement of mesh lines MeshStyle Automatic the style for mesh lines Method Automatic the method to use for interpolation and data reduction PerformanceGoal $PerformanceGoal aspects of performance to try to optimize OpacityFunction Automatic how to compute the opacity at each point PlotLegends None legends for color gradients PlotTheme $PlotTheme overall theme for the plot RegionFunction (True&) how to determine whether a point should be included ScalingFunctions None how to scale individual coordinates - ColorFunction and OpacityFunction are supplied with a single argument, given by default by the scaled value of vali.
- Typical settings for OpacityFunction include:
-
Automatic automatically determined None no opacity function, fully opaque α constant opacity Opacity[α] Interval[…] make values in the interval more opaque func general opacity function - The arguments supplied to RegionFunction are lat, lon and val.
- The value of region in RegionFunction->region can be an entity or geo polygon over which to plot.
- DataRange takes a pair of geo locations to identify the latitude and longitude bounds for gridded values.
Examples
open allclose allBasic Examples (4)
Plot data associated with geo locations:
Plot the temperature for cities near Austin, TX, with a legend:
Use a GeoPosition of locations with elevations around Crater Lake:
Scope (12)
Data (7)
Use an Association with locations for keys and values for counts:
Use WeightedData:
Locations can be given as entities or geo positions:
GeoRange is selected automatically:
Use GeoRange to focus on geographic areas of interest:
Use MaxPlotPoints to limit the number of points used:
Use RegionFunction to restrict the density to a region:
Options (55)
BoundaryStyle (3)
GeoBackground (2)
GeoCenter (2)
GeoGridLines (2)
GeoProjection (2)
GeoRange (3)
GeoRangePadding (4)
Use GeoRangePadding->None to remove padding:
Use 250 kilometers of padding on each side of the map:
GeoScaleBar (3)
GeoServer (2)
GeoZoomLevel (2)
Explicitly specify GeoZoomLevel to obtain a lower-resolution map rendering:
Explicitly specify GeoZoomLevel to obtain a higher-resolution map rendering:
InterpolationOrder (2)
MaxPlotPoints (2)
GeoDensityPlot normally uses all of the points in the dataset:
MeshStyle (2)
OpacityFunction (4)
PerformanceGoal (2)
PlotLegends (4)
Legends automatically use the same colors as the density plot:
Use Placed to change legend placement:
PlotTheme (1)
Applications (2)
Properties & Relations (10)
Draw contours on a map with GeoContourPlot:
Use ListDensityPlot for general data:
Use GeoBubbleChart to show values with scaled bubbles:
Use GeoRegionValuePlot to show values with colored regions:
Use GeoHistogram to aggregate locations into bins:
Use GeoSmoothHistogram to generate smooth densities from locations:
Use GeoListPlot for individual locations:
Use GeoVectorPlot and GeoStreamPlot for vector fields:
Use GeoGraphValuePlot to show the values on geographic networks:
Text
Wolfram Research (2020), GeoDensityPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoDensityPlot.html.
CMS
Wolfram Language. 2020. "GeoDensityPlot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoDensityPlot.html.
APA
Wolfram Language. (2020). GeoDensityPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoDensityPlot.html