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: [List of all options]
-
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.
-
AlignmentPoint Center the default point in the graphic to align with AspectRatio Automatic ratio of height to width Axes False whether to draw axes AxesLabel None axes labels AxesOrigin Automatic where axes should cross AxesStyle {} style specifications for the axes Background None background color for the plot BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic 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 ContentSelectable Automatic whether to allow contents to be selected CoordinatesToolOptions Automatic detailed behavior of the coordinates tool DataRange Automatic the range of lat and lon values to assume for data Epilog {} primitives rendered after the main plot FormatType TraditionalForm the default format type for text Frame False whether to put a frame around the plot FrameLabel None frame labels FrameStyle {} style specifications for the frame FrameTicks Automatic frame ticks FrameTicksStyle {} style specifications for frame ticks GeoBackground Automatic style specifications for the background GeoCenter Automatic center coordinates to use GeoGridLines None geographic grid lines to draw GeoGridLinesStyle Automatic style specifications for geographic grid lines GeoGridRange All projected coordinate range to include GeoGridRangePadding Automatic how much to pad the projected range GeoModel Automatic model of the Earth (or other body) to use GeoProjection Automatic projection to use GeoRange Automatic geographic area range to include GeoRangePadding Automatic how much to pad the geographic range GeoResolution Automatic average distance between background pixels GeoScaleBar None scale bar to display GeoServer Automatic specification of a tile server GeoZoomLevel Automatic zoom to use for geographic background GridLines None grid lines to draw GridLinesStyle {} style specifications for grid lines ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels etc. ImageSize Automatic the absolute size at which to render the graphic InterpolationOrder None the polynomial degree in each variable of the interpolated density between data points LabelStyle {} style specifications for labels 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 MetaInformation {} meta-information about the map Method Automatic the method to use for interpolation and data reduction OpacityFunction Automatic how to compute the opacity at each point PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotLabel None an overall label for the plot PlotLegends None legends for color gradients PlotRange All range of values to include PlotRangeClipping False whether to clip at the plot range PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic the final display region to be filled PlotTheme $PlotTheme overall theme for the plot PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} primitives rendered before the main plot RasterSize Automatic raster dimensions for the background data RegionFunction (True&) how to determine whether a point should be included RotateLabel True whether to rotate y labels on the frame ScalingFunctions None how to scale individual coordinates Ticks Automatic axes ticks TicksStyle {} style specifications for axes ticks
List of all options
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