GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
d.vect.chart(1) GRASS GIS User's Manual d.vect.chart(1)

d.vect.chart - Displays charts of vector data in the active frame on the graphics monitor.

display, cartography, chart maps

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]


Center the bar chart around a data point

Create legend information and send to stdout
-3

Create 3D charts

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog


Name of vector map
Or data source for direct OGR access

Input feature type
Options: point, line, boundary, centroid, area
Default: point,line,boundary,centroid

Layer number or name
Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.
Default: 1

Chart type
Options: pie, bar
Default: pie

Attribute columns containing data

Column used for pie chart size

Size of chart (diameter for pie, total width for bar)
Default: 40

Scale for size (to get size in pixels)
Default: 1

Outline color
Either a standard color name or R:G:B triplet
Default: black

Colors used to fill charts
Either a standard color name or R:G:B triplet
Default: black

Maximum value used for bar plot reference

d.vect.chart displays charts for GRASS vector data in the active frame on the graphics monitor.

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).

Pie-charts of monthly winter precipitation (North Carolina sample dataset):

g.region vector=nc_state -p
d.vect nc_state
d.vect.chart precip_30ynormals chart_type=pie columns=nov,dec,jan,feb -l
# show pie chart as 3D
d.erase
d.vect nc_state
d.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

Bar-chart of different census map values:

d.vect.chart map=vectmap columns=cens51,cens61,cens71,cens81 chart_type=bar

Creation of framed bar charts of an erodibiliy index from the Spearfish sample dataset:

g.region raster=erode.index -p
r.to.vect -s input=erode.index output=erode_index type=area
v.extract input=erode_index output=erode_index_ctrds type=centroid
d.rast aspect
d.vect.chart map=erode_index_ctrds chart_type=bar columns=cat \

size=10 max_ref=12 scale=0.05 colors=yellow d.vect erode_index_ctrds icon=basic/circle fcol=black col=black size=5

Bar charts of an erodibiliy index (spatial subset)

d.erase, d.vect, d.vect.thematic, d.what.vect, d.rast

Radim Blazek, ITC-Irst, Trento, Italy

Available at: d.vect.chart source code (history)

Latest change: Wednesday Nov 27 22:53:26 2024 in commit: b90ce69e88409469369ec1edb86fde8ec822af8b

Main index | Display index | Topics index | Keywords index | Graphical index | Full index

© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

GRASS 8.4.1

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.