1d.vect.chart(1) Grass User's Manual d.vect.chart(1)
2
3
4
6 d.vect.chart - Displays charts of GRASS vector data in the active
7 frame on the graphics monitor
8
10 display
11
13 d.vect.chart
14 d.vect.chart help
15 d.vect.chart [-c] map=name [type=string[,string,...]] [layer=inte‐
16 ger] [ctype=string] columns=string[,string,...] [sizecol=string]
17 [size=integer] [scale=float] [ocolor=string] [col‐
18 ors=string[,string,...]] [max_ref=float[,float,...]]
19
20 Flags:
21 -c Center the bar chart around a data point
22
23 Parameters:
24 map=name
25 Name of input vector map
26
27 type=string[,string,...]
28 Type Options: point,line,boundary,centroid,area Default:
29 point,line,boundary,centroid
30
31 layer=integer
32 Layer number Default: 1
33
34 ctype=string
35 Chart type Options: pie,bar Default: pie
36
37 columns=string[,string,...]
38 Attribute columns containing data
39
40 sizecol=string
41 Column used for pie chart size
42
43 size=integer
44 Size of chart (diameter for pie, total width for bar) Default: 40
45
46 scale=float
47 Scale for size (to get size in pixels) Default: 1
48
49 ocolor=string
50 Outline color Default: black
51
52 colors=string[,string,...]
53 Colors used to fill charts
54
55 max_ref=float[,float,...]
56 Maximum value used for bar plot reference
57
59 d.vect.chart displays charts for GRASS vector data in the active frame
60 on the graphics monitor.
61
63 The charts are positioned as follows:
64
65 vector points: on point position
66
67 vector lines: on line centers
68
69 vector areas: on area centroids
70 Bar charts are placed with their lower edge starting from the y-coordi‐
71 nate of the feature being symbolized, and centered with respect to the
72 x-coordinate. The -c flag can be used to center the bar chart in both x
73 and y directions.
74 The 'sizecol' parameter is proportionate to the radius.
75 The optional max_ref parameter accepts a list of values that represent
76 the maximum value for each column listed in the values for the parame‐
77 ter columns. These values are used to create a framed bar plot if ctype
78 is bar (See Example 2).
79
81 Example 1
82
83 d.vect.chart map=vectmap columns=cens51,cens61,cens71,cens81
84
85
86 Example 2
87 Create framed bar graphs of an erodibiliy index from the SPEARFISH
88 dataset.
89 r.to.vect -s -v in=erode.index out=erode_index feature=area
90 v.extract in=erode_index out=erode_index_ctrds type=centroid
91 d.rast aspect
92 d.vect.chart map=erode_index_ctrds ctype=bar columns=cat \
93 size=10 max_ref=12 scale=1.5 colors=yellow
94 d.vect erode_index_ctrds icon=basic/circle fcol=black col=black size=5
95 Example screenshot (zoomed):
96
98 d.erase, d.vect, d.vect.thematic, d.what.vect, d.rast
99
101 Radim Blazek, ITC-Irst, Trento, Italy
102
103 Last changed: $Date: 2007/06/02 20:47:26 $
104
105 Full index
106
107
108
109GRASS 6.2.2 d.vect.chart(1)