d.histogram.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <h2>DESCRIPTION</h2>
  2. <em>d.histogram</em> displays the category-value distribution for a
  3. user-specified raster map layer, in the form of a bar chart or a pie chart.
  4. The display will be displayed in the active display frame on the graphics
  5. monitor, using the colors in the raster map layer's color table. The
  6. program determines the raster map's category value distribution by counting
  7. cells.
  8. <h2>NOTES</h2>
  9. <em>d.histogram</em> respects the current geographic region settings
  10. and the current MASK (if one exists).
  11. <p><em>d.histogram</em> uses the colors in the map's color look-up table
  12. (i.e., the map's <em>colr</em> or <em>colr2</em> file).
  13. <h2>EXAMPLES</h2>
  14. Running the command below will generate the bar graph shown in the figure:
  15. <div class="code"><pre>
  16. g.region raster=elevation -p
  17. d.mon wx0
  18. d.histogram map=elevation
  19. </pre></div>
  20. <div align="center" style="margin: 10px">
  21. <img src="d_histogram_bar.png" alt="d.histogram bar graph example" border="0">
  22. <br>
  23. <i>Figure: Bar graph histogram for elevation map</i>
  24. </div>
  25. <p>
  26. Running the command below will generate the pie graph shown in the figure:
  27. <div class="code"><pre>
  28. g.region raster=landuse96_28m -p
  29. d.histogram map=landuse96_28m style=pie
  30. </pre></div>
  31. <div align="center" style="margin: 10px">
  32. <img src="d_histogram_pie.png" alt="d.histogram pie graph example" border="0">
  33. <br>
  34. <i>Figure: Pie graph histogram for landuse map</i>
  35. </div>
  36. <h2>SEE ALSO</h2>
  37. <em>
  38. <a href="d.colortable.html">d.colortable</a>,
  39. <a href="d.frame.html">d.frame</a>,
  40. <a href="d.graph.html">d.graph</a>,
  41. <a href="d.linegraph.html">d.linegraph</a>,
  42. <a href="d.mon.html">d.mon</a>,
  43. <a href="d.polar.html">d.polar</a>,
  44. <a href="g.region.html">g.region</a>,
  45. <a href="r.stats.html">r.stats</a>
  46. </em>
  47. <h2>AUTHOR</h2>
  48. Dave Johnson
  49. <br> DBA Systems, Inc.
  50. <br> 10560 Arrowhead Drive
  51. <br> Fairfax, Virginia 22030
  52. <!--
  53. <p>
  54. <i>Last changed: $Date$</i>
  55. -->