Graphics


The following directives for produce the plots in "line-printer" style, i.e. using the characters of ordinary textual output:


LPCONTOUR
produces contour maps of two-way arrays of numbers

LPGRAPH
produces scatter plots and line graphs

LPHISTOGRAM
plots histograms


GenStat can also produce high-resolution plots. The relevant directives have two main purposes. There are those that define the "graphics environment" for subsequent plots, and those that do the plotting. Often the default environment, set up at the start of a program, will be satisfactory. To change the graphics environment, the following directives can be used:


XAXIS
defines the x-axis in each graphical window

YAXIS
defines the y-axis in each graphical window

ZAXIS
defines the z-axis in each graphical window

AXES
defines the x- and y-axes in each graphical window

COLOUR
defines the colour map for certain graphics devices

DEVICE
switches between graphics devices

FRAME
defines the positions of the windows within the frame

PEN
defines the properties of the graphics "pens"

DKEEP
saves information about the graphics environment in GenStat data structures

DLOAD
loads the graphics environment settings from an external file

DSAVE
saves the current graphics environment settings to an external file


The directives for plotting high-resolution graphs are:


BARCHART
plots barcharts

DGRAPH
produces scatter plots and line graphs

DHISTOGRAM
plots histograms

DPIE
produces pie charts

DCONTOUR
produces contour maps

DSHADE
produces a shade diagram of 3-dimensional data

DSURFACE
draws a perspective plot of a two-way array of numbers

D3GRAPH
plots a 3-dimensional graph

D3HISTOGRAM
produces 3-dimensional histograms

DSTART
starts a sequence of related plots

DFINISH
ends a sequence of related plots

DDISPLAY
redraws the current graphical display

DCLEAR
clears a graphics screen


Other facilities, provided by procedures in the graphics module of the Library include:


BANK
calculates the optimum aspect ratio for a graph

BOXPLOT
draws box-and-whisker diagrams (schematic plots)

DBARCHART
plots barcharts for one or two-way tables

DCIRCULAR
plots circular data

DCOMPOSITIONAL
plots 3-part compositional data within a barycentric triangle

DKSTPLOT
produces diagnostic plots for space-time clustering

DMASS
plots discrete data like mass spectra, discrete probability functions

DOTHISTOGRAM
plots dot histograms

DOTPLOT
produces a dot-plot

DPROBABILITY
creates probability distribution plots

DRESIDUALS
produces model-checking plots of residuals

DSCATTER
produces a scatter-plot matrix

DTEXT
adds text to a graph

DTIMEPLOT
produces horizontal bars displaying a continuous time record

FFRAME
forms multiple windows in a plot-matrix for high-resolution graphics

INSIDE
determines whether points lie within a specified polygon

LORENZ
plots the Lorenz curve and calculates the Gini and asymmetry coefficients

RUGPLOT
draws "rugplots" to display the distribution of one or more samples

STEM
produces a simple stem-and-leaf chart

TRELLIS
produces trellis plots for each level of one or more factors

WINDROSE
plots rose diagrams of circular data like wind speeds