d.vect.chart1grass
Displays charts of vector data in the active frame on the graphics monitor.
Usage
d.vect.chart
d.vect.chart --help
d.vect.chart [-cl3]
map=name
[type=string
[,string, ...]]
[layer=string]
[chart_type=string]
columns=name
[,name, ...]
[size_column=name]
[size=integer]
[scale=float]
[outline_color=name]
[colors=name
[,name, ...]]
[max_ref=float
[,float, ...]]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
display, cartography, chart maps
Overview
d.vect.chart displays charts for GRASS vector data in the active frame on the graphics monitor.
Notes
The charts are positioned as follows:
•
|
vector points: on point position, |
|---|---|
•
|
vector lines: on line centers, |
•
|
vector areas: on area centroids. |
Bar charts are placed with their lower edge starting from the y-coordinate of the feature being symbolized, and centered with respect to the x-coordinate. The -c flag can be used to center the bar chart in both x and y directions.
The ’sizecol’ parameter is proportionate to the radius.
The optional max_ref parameter accepts a list of values that represent the maximum value for each column listed in the values for the parameter columns. These values are used to create a framed bar plot if chart_type is bar (See Example 2).
Examples
Example 1
Pie-charts of monthly winter precipitation (North Carolina sample dataset):
g.region vector=nc_state -pd.vect nc_stated.vect.chart precip_30ynormals chart_type=pie columns=nov,dec,jan,feb -l# show pie chart as 3Dd.erased.vect nc_stated.vect.chart precip_30ynormals chart_type=pie columns=nov,dec,jan,feb -l -3
2D pie-chart of monthly winter precipitation in North Carolina
3D pie-chart of monthly winter precipitation in North Carolina
Example 2
Bar-chart of different census map values:
d.vect.chart map=vectmap columns=cens51,cens61,cens71,cens81 chart_type=bar
Example 3
Creation of framed bar charts of an erodibiliy index from the Spearfish sample dataset:
g.region raster=erode.index -pr.to.vect -s input=erode.index output=erode_index type=areav.extract input=erode_index output=erode_index_ctrds type=centroidd.rast aspectd.vect.chart map=erode_index_ctrds chart_type=bar columns=cat \size=10 max_ref=12 scale=0.05 colors=yellowd.vect erode_index_ctrds icon=basic/circle fcol=black col=black size=5
Bar charts of an erodibiliy index (spatial subset)
Source code
Available at: d.vect.chart source code (history)
Accessed: Monday Feb 24 17:50:27 2025
Main index | Display index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
Releases
10 releases since Debian 4.0 (Etch); the text changed 9 times.