| 1 | <?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="81help.css?format=raw" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Density Histogram for Point Coordinate</title></head><body><table style="margin-top:-1em; margin-bottom:0; padding:0; margin-left:-1em"><tr><td style="background:white"><img width="875" height="70" alt="ArcToolbox banner" src="AHBanner_ArcToolbox.gif?format=raw" /></td></tr></table><h1>Density Histogram for Point Coordinate</h1><p></p><p>Creates a density histogram for one of the coordinates of an ArcGIS point feature class or layer.</p><br /><p><h2><img width="11" height="11" border="0" src="sm_arrow_down.gif?format=raw" /> Command line syntax</h2></p><div Class="expand" id="id103150">RExploratoryPlotsDensityHistogramForArcGISPointsCoordinates_GeoEco <pointFeatures> <x | y | z | m> {coordinateName} {transform} {categoryField} {where} {bottom | bottomleft | bottomright | center | left | right | top | topleft | topright} {outputFile} {width} {height} {pointSize} {bg} <br /><br /><b>Parameters</b><br /><table width="100%" border="0" cellpadding="5"><tbody><tr><th width="40%"><b>Expression</b></th><th width="60%"><b>Explanation</b></th></tr><tr><td class="info"><pointFeatures></td><td class="info" align="left"><p>ArcGIS point feature class or layer for which the plot should be |
|---|
| 4 | generated.</p></td></tr><tr><td class="info"><x | y | z | m></td><td class="info" align="left"><p>Point coordinate for which a density histogram should be plotted:</p><ul><li><p>x - the x coordinate</p></li></ul><ul><li><p>y - the y coordinate</p></li></ul><ul><li><p>z - the z coordinate</p></li></ul><ul><li><p>m - the measure value</p></li></ul><p>An error will be reported if you specify z or m and the point features |
|---|
| 5 | do not have z coordinates or measure values.</p></td></tr><tr><td class="info">{coordinateName}</td><td class="info" align="left"><p>Name to display for the coordinate (e.g. "Longitude"). If you do |
|---|
| 6 | not specify a name, "x", "y", "z", or "m" will be used.</p></td></tr><tr><td class="info">{transform}</td><td class="info" align="left"><p>Transformation to perform before plotting the density histogram.</p><p>Use this parameter when the distribution of the original data is too |
|---|
| 7 | skewed to yield an informative plot. This parameter must be an R |
|---|
| 8 | expression that operates on the vector d that represents the original |
|---|
| 9 | values. For example, the following expressions perform natural |
|---|
| 10 | logarithm, base 10 logarithm, square root, and cube root transforms, |
|---|
| 11 | respectively:</p><dl><dt></dt><dd><pre>log(d) |
|---|
| 12 | log10(d) |
|---|
| 13 | d^(1/2) |
|---|
| 14 | d^(1/3)</pre></dd></dl><p>The expression may be as complicated as you want, so long as it |
|---|
| 15 | conforms to R syntax, operates only on the variable d, and yields a |
|---|
| 16 | vector of the same length as the input data. For example, if the input |
|---|
| 17 | data represent water depth expressed as a negative number (e.g. -100 |
|---|
| 18 | is 100 meters below the surface), and you want to transform the data |
|---|
| 19 | using a base 10 logarithm, you must first take the absolute value of |
|---|
| 20 | depth:</p><dl><dt></dt><dd><pre>log10(abs(d))</pre></dd></dl></td></tr><tr><td class="info">{categoryField}</td><td class="info" align="left"><p>Field specifying categories for the data.</p><p>A separate histogram line will be plotted for each category, allowing |
|---|
| 21 | you to compare the distribution of data between categories. For |
|---|
| 22 | example, in an ecology study, if you wanted to compare the |
|---|
| 23 | distribution at locations where a species was present to locations |
|---|
| 24 | where it was absent, you could specify the "IsPresent" field as the |
|---|
| 25 | category field (1 = species present, 0 = species absent).</p><p>The field must have the data type SHORT, LONG, FLOAT, DOUBLE, TEXT, or |
|---|
| 26 | DATE. Rows with NULL values for this field will not be included in the |
|---|
| 27 | histogram.</p><p>A maximum of six categories is allowed. If this field contains more |
|---|
| 28 | than six unique values, an error will be reported. You can reduce the |
|---|
| 29 | number of categories by specifying a Where Clause that restricts the |
|---|
| 30 | rows that are processed to those having the six or fewer category |
|---|
| 31 | values you are most interested in.</p></td></tr><tr><td class="info">{where}</td><td class="info" align="left"><p>SQL WHERE clause expression that specifies the subset of rows to |
|---|
| 32 | process. If this parameter is not provided, all of the rows will be |
|---|
| 33 | processed. If this parameter is provided but the underlying database |
|---|
| 34 | does not support WHERE clauses, an error will be raised.</p><p>The exact syntax of this expression depends on the underlying |
|---|
| 35 | database. ESRI recommends you reference fields using the following |
|---|
| 36 | syntax:</p><ul><li><p>If you're querying ArcInfo coverages, shapefiles, INFO tables or |
|---|
| 37 | dBASE tables (.dbf files), enclose field names in double quotes in |
|---|
| 38 | the SQL expression: "MY_FIELD".</p></li></ul><ul><li><p>If you're querying Microsoft Access tables or personal |
|---|
| 39 | geodatabase tables, enclose field names in square brackets: |
|---|
| 40 | [MY_FIELD].</p></li></ul><ul><li><p>If you're querying ArcSDE geodatabase tables, an ArcIMS feature |
|---|
| 41 | class, or an ArcIMS image service sublayer, don't enclose field |
|---|
| 42 | names: MY_FIELD.</p></li></ul></td></tr><tr><td class="info">{bottom | bottomleft | bottomright | center | left | right | top | topleft | topright}</td><td class="info" align="left"><p>Position of the plot's legend. If this parameter is omitted, no |
|---|
| 43 | legend will be drawn.</p></td></tr><tr><td class="info">{outputFile}</td><td class="info" align="left"><p>Portable Network Graphics (PNG) file to create for the plot. It is |
|---|
| 44 | suggested that you name your output file with a .png extension, so it |
|---|
| 45 | can be displayed properly by other programs.</p><p>If you specify an output file, it will be written using R's png |
|---|
| 46 | graphics device. An interactive window will not be displayed on the |
|---|
| 47 | screen.</p></td></tr><tr><td class="info">{width}</td><td class="info" align="left"><p>Width of the output PNG file, in pixels.</p></td></tr><tr><td class="info">{height}</td><td class="info" align="left"><p>Height of the output PNG file, in pixels.</p></td></tr><tr><td class="info">{pointSize}</td><td class="info" align="left"><p>The default pointsize of text in the output PNG file, interpreted |
|---|
| 48 | at 72 dpi, so one point is approximately one pixel.</p></td></tr><tr><td class="info">{bg}</td><td class="info" align="left"><p>Background color for the output PNG file. The color must be a |
|---|
| 49 | valid name in R's color palette, or "transparent" if there is no |
|---|
| 50 | background color.</p></td></tr></tbody></table></div><p><h2><img width="11" height="11" border="0" src="sm_arrow_down.gif?format=raw" /> Scripting syntax</h2></p><div Class="expand" id="TEST">RExploratoryPlotsDensityHistogramForArcGISPointsCoordinates_GeoEco (pointFeatures, coordinate, coordinateName, transform, categoryField, where, legend, outputFile, width, height, pointSize, bg) <br /><br /><b>Parameters</b><br /><table width="100%" border="0" cellpadding="5"><tbody><tr><th width="40%"><b>Expression</b></th><th width="60%"><b>Explanation</b></th></tr><tr><td class="info">Point features (Required) </td><td class="info" align="left"><p>ArcGIS point feature class or layer for which the plot should be |
|---|
| 51 | generated.</p></td></tr><tr><td class="info">Coordinate to plot (Required) </td><td class="info" align="left"><p>Point coordinate for which a density histogram should be plotted:</p><ul><li><p>x - the x coordinate</p></li></ul><ul><li><p>y - the y coordinate</p></li></ul><ul><li><p>z - the z coordinate</p></li></ul><ul><li><p>m - the measure value</p></li></ul><p>An error will be reported if you specify z or m and the point features |
|---|
| 52 | do not have z coordinates or measure values.</p></td></tr><tr><td class="info">Name to display for the coordinate (Optional) </td><td class="info" align="left"><p>Name to display for the coordinate (e.g. "Longitude"). If you do |
|---|
| 53 | not specify a name, "x", "y", "z", or "m" will be used.</p></td></tr><tr><td class="info">Transform (Optional) </td><td class="info" align="left"><p>Transformation to perform before plotting the density histogram.</p><p>Use this parameter when the distribution of the original data is too |
|---|
| 54 | skewed to yield an informative plot. This parameter must be an R |
|---|
| 55 | expression that operates on the vector d that represents the original |
|---|
| 56 | values. For example, the following expressions perform natural |
|---|
| 57 | logarithm, base 10 logarithm, square root, and cube root transforms, |
|---|
| 58 | respectively:</p><dl><dt></dt><dd><pre>log(d) |
|---|
| 59 | log10(d) |
|---|
| 60 | d^(1/2) |
|---|
| 61 | d^(1/3)</pre></dd></dl><p>The expression may be as complicated as you want, so long as it |
|---|
| 62 | conforms to R syntax, operates only on the variable d, and yields a |
|---|
| 63 | vector of the same length as the input data. For example, if the input |
|---|
| 64 | data represent water depth expressed as a negative number (e.g. -100 |
|---|
| 65 | is 100 meters below the surface), and you want to transform the data |
|---|
| 66 | using a base 10 logarithm, you must first take the absolute value of |
|---|
| 67 | depth:</p><dl><dt></dt><dd><pre>log10(abs(d))</pre></dd></dl></td></tr><tr><td class="info">Category field (Optional) </td><td class="info" align="left"><p>Field specifying categories for the data.</p><p>A separate histogram line will be plotted for each category, allowing |
|---|
| 68 | you to compare the distribution of data between categories. For |
|---|
| 69 | example, in an ecology study, if you wanted to compare the |
|---|
| 70 | distribution at locations where a species was present to locations |
|---|
| 71 | where it was absent, you could specify the "IsPresent" field as the |
|---|
| 72 | category field (1 = species present, 0 = species absent).</p><p>The field must have the data type SHORT, LONG, FLOAT, DOUBLE, TEXT, or |
|---|
| 73 | DATE. Rows with NULL values for this field will not be included in the |
|---|
| 74 | histogram.</p><p>A maximum of six categories is allowed. If this field contains more |
|---|
| 75 | than six unique values, an error will be reported. You can reduce the |
|---|
| 76 | number of categories by specifying a Where Clause that restricts the |
|---|
| 77 | rows that are processed to those having the six or fewer category |
|---|
| 78 | values you are most interested in.</p></td></tr><tr><td class="info">Where clause (Optional) </td><td class="info" align="left"><p>SQL WHERE clause expression that specifies the subset of rows to |
|---|
| 79 | process. If this parameter is not provided, all of the rows will be |
|---|
| 80 | processed. If this parameter is provided but the underlying database |
|---|
| 81 | does not support WHERE clauses, an error will be raised.</p><p>The exact syntax of this expression depends on the underlying |
|---|
| 82 | database. ESRI recommends you reference fields using the following |
|---|
| 83 | syntax:</p><ul><li><p>If you're querying ArcInfo coverages, shapefiles, INFO tables or |
|---|
| 84 | dBASE tables (.dbf files), enclose field names in double quotes in |
|---|
| 85 | the SQL expression: "MY_FIELD".</p></li></ul><ul><li><p>If you're querying Microsoft Access tables or personal |
|---|
| 86 | geodatabase tables, enclose field names in square brackets: |
|---|
| 87 | [MY_FIELD].</p></li></ul><ul><li><p>If you're querying ArcSDE geodatabase tables, an ArcIMS feature |
|---|
| 88 | class, or an ArcIMS image service sublayer, don't enclose field |
|---|
| 89 | names: MY_FIELD.</p></li></ul></td></tr><tr><td class="info">Legend (Optional) </td><td class="info" align="left"><p>Position of the plot's legend. If this parameter is omitted, no |
|---|
| 90 | legend will be drawn.</p></td></tr><tr><td class="info">Output PNG file (Optional) </td><td class="info" align="left"><p>Portable Network Graphics (PNG) file to create for the plot. It is |
|---|
| 91 | suggested that you name your output file with a .png extension, so it |
|---|
| 92 | can be displayed properly by other programs.</p><p>If you specify an output file, it will be written using R's png |
|---|
| 93 | graphics device. An interactive window will not be displayed on the |
|---|
| 94 | screen.</p></td></tr><tr><td class="info">Plot width (Optional) </td><td class="info" align="left"><p>Width of the output PNG file, in pixels.</p></td></tr><tr><td class="info">Plot height (Optional) </td><td class="info" align="left"><p>Height of the output PNG file, in pixels.</p></td></tr><tr><td class="info">Default pointsize of plotted text (Optional) </td><td class="info" align="left"><p>The default pointsize of text in the output PNG file, interpreted |
|---|
| 95 | at 72 dpi, so one point is approximately one pixel.</p></td></tr><tr><td class="info">Plot background color (Optional) </td><td class="info" align="left"><p>Background color for the output PNG file. The color must be a |
|---|
| 96 | valid name in R's color palette, or "transparent" if there is no |
|---|
| 97 | background color.</p></td></tr></tbody></table></div></body></html> |
|---|