d.vect.chart.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <h2>DESCRIPTION</h2>
  2. <em>d.vect.chart</em> displays charts for GRASS vector data in the active
  3. frame on the graphics monitor.
  4. <h2>NOTES</h2>
  5. The charts are positioned as follows:
  6. <ul>
  7. <li> vector points: on point position,
  8. <li> vector lines: on line centers,
  9. <li> vector areas: on area centroids.
  10. </ul>
  11. Bar charts are placed with their lower edge starting from the y-coordinate
  12. of the feature being symbolized, and centered with respect to the x-coordinate.
  13. The <b>-c</b> flag can be used to center the bar chart in both x and y
  14. directions.
  15. <p>
  16. The 'sizecol' parameter is proportionate to the radius.
  17. <p>
  18. The optional <b>max_ref</b> parameter accepts a list of values that
  19. represent the maximum value for each column listed in the values for the
  20. parameter <b>columns</b>. These values are used to create a framed bar
  21. plot if <b>chart_type</b> is <em>bar</em> (See Example 2).
  22. <h2>EXAMPLES</h2>
  23. <h3>Example 1</h3>
  24. Pie-charts of monthly winter precipitation (North Carolina sample dataset):
  25. <!-- might be good to add this to example:
  26. v.voronoi input=precip_30ynormals output=precip_stations_voronoi
  27. d.vect precip_stations_voronoi type=boundary
  28. -->
  29. <div class="code"><pre>
  30. g.region vector=nc_state -p
  31. d.vect nc_state
  32. d.vect.chart precip_30ynormals chart_type=pie columns=nov,dec,jan,feb -l
  33. # show pie chart as 3D
  34. d.erase
  35. d.vect nc_state
  36. d.vect.chart precip_30ynormals chart_type=pie columns=nov,dec,jan,feb -l -3
  37. </pre></div>
  38. <center>
  39. <img src="d_vect_chart_pie_2d.png" alt="d.vect.chart 2D pie chart"><br>
  40. 2D pie-chart of monthly winter precipitation in North Carolina
  41. </center>
  42. <p>
  43. <center>
  44. <img src="d_vect_chart_pie_3d.png" alt="d.vect.chart 3D pie chart"><br>
  45. 3D pie-chart of monthly winter precipitation in North Carolina
  46. </center>
  47. <h3>Example 2</h3>
  48. Bar-chart of different census map values:
  49. <div class="code"><pre>
  50. d.vect.chart map=vectmap columns=cens51,cens61,cens71,cens81 chart_type=bar
  51. </pre></div>
  52. <h3>Example 3</h3>
  53. Creation of framed bar charts of an erodibiliy index from the Spearfish
  54. sample dataset:
  55. <div class="code"><pre>
  56. g.region raster=erode.index -p
  57. r.to.vect -s input=erode.index output=erode_index type=area
  58. v.extract input=erode_index output=erode_index_ctrds type=centroid
  59. d.rast aspect
  60. d.vect.chart map=erode_index_ctrds chart_type=bar columns=cat \
  61. size=10 max_ref=12 scale=0.05 colors=yellow
  62. d.vect erode_index_ctrds icon=basic/circle fcol=black col=black size=5
  63. </pre></div>
  64. <center>
  65. <img src="d.vect.chart_example.jpg" alt="d.vect.chart example"><br>
  66. Bar charts of an erodibiliy index (spatial subset)
  67. </center>
  68. <h2>SEE ALSO</h2>
  69. <em>
  70. <a href="d.erase.html">d.erase</a>,
  71. <a href="d.vect.html">d.vect</a>,
  72. <a href="d.vect.thematic.html">d.vect.thematic</a>,
  73. <a href="d.what.vect.html">d.what.vect</a>,
  74. <a href="d.rast.html">d.rast</a>
  75. </em>
  76. <h2>AUTHOR</h2>
  77. Radim Blazek, ITC-Irst, Trento, Italy
  78. <p><i>Last changed: $Date$</i>