Graphics
GenStat can plot data on terminals or line-printers. Most GenStat implementations can also
produce graphs on higher resolution devices like graphics monitors and plotters. The relevant
directives for line-printers or terminals are:
produces contour maps of two-way arrays of numbers
produces scatter plots and line graphs
plots histograms
For high-resolution graphics, the 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:
defines the x-axis in each graphical window
defines the y-axis in each graphical window
defines the z-axis in each graphical window
defines the x- and y-axes in each graphical window
defines the colour map for certain graphics devices
switches between graphics devices
defines the positions of the windows within the frame
defines the properties of the graphics "pens"
Saves information about the graphics environment
The directives for plotting high-resolution graphs are:
produces scatter plots and line graphs
plots histograms
produces pie charts
produces contour maps
produces a shade diagram of 3-dimensional data
draws a perspective plot of a two-way array of numbers
plots a 3-dimensional graph
produces 3-dimensional histograms
starts a sequence of related plots
ends a sequence of related plots
redraws the current graphical display
clears a graphics screen
With some interactive graphics devices, information can be read from the screen:
reads locations of points from an interactive graphics device
Other facilities, provided by procedures in the graphics module of the Library include:
calculates the optimum aspect ratio for a graph
plots a bar chart
draws box-and-whisker diagrams (schematic plots)
plots barcharts for one or two-way tables
plots circular data
plots 3-part compositional data within a barycentric
triangle
produces diagnostic plots for space-time clustering
plots discrete data like mass spectra, discrete probability
functions
produces a dot-plot
creates probability distribution plots
produces model-checking plots of residuals
produces a scatter-plot matrix
produces horizontal bars displaying a continuous time
record
forms multiple windows in a plot-matrix for high-resolution
graphics
determines whether points lie within a specified polygon
plots the Lorenz curve and calculates the Gini and asymmetry
coefficients
draws "rugplots" to display the distribution of one or more
samples
produces a simple stem-and-leaf chart
produces trellis plots for each level of one or more factors
plots rose diagrams of circular data like wind speeds