Debian Codegraph @

display/d.vect.chart/d.vect.chart.html

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