Last data update: 2014.03.03

R: Grouped plots of type "h"
gplotR Documentation

Grouped plots of type "h"

Description

gplot is primarily used by plot.mandel.kh to produce the underlying grouped data plot.

Usage

	gplot(x, main = NULL, xlab = NULL, ylab = deparse(substitute(x)), 
		ylim = NULL, las = 1, axes = TRUE, cex.axis = 1, 
		frame.plot = axes, lwd = 1, lty = 1, col = par("col"), 
		separators = TRUE, col.sep = "lightgrey", lwd.sep = 1, 
		lty.sep = 1, zero.line = TRUE, 
		lwd.zero = 1, col.zero = 1, lty.zero = 1, ...)

Arguments

x

A matrix or data frame to be plotted.

main

Main title for the plot.

xlab, ylab

Labels for x and y axes.

ylim

the y limits of the plot.

las

the style of the axis labels; see par for details.

axes

a logical value indicating whether axes should be drawn on the plot.

cex.axis

The magnification to be used for axis annotation relative to the current setting of 'cex'.

frame.plot

Logical; If TRUE a box is drawn around the plot.

lwd, lty, col

Graphical parameters used for the plotted vertical lines corresponding to each value in x.

separators

Logical; if TRUE, separator lines are drawn between groups of values.

col.sep, lwd.sep, lty.sep

Graphical parameters used for the separator lines.

zero.line

logical; if TRUE a horizontal line is drawn at zero.

lwd.zero, col.zero, lty.zero

Graphical parameters used for the zero line.

...

Other graphical parameters passed to plot.

Details

gplot produces a plot of type="h", with values in x grouped by row and with optional vertical separators between groups. The plotting order (left to right) is in order of stack(as.data.frame(t(x))); each group corresoponds to a row in x.

Because gplot is primarily a supporting function for plot.mandel.kh, it assumes a suitable object will be provided and does minimal checking to ensure an appropriate object class. Error messages may not be very informative.

Value

A numeric vector of mid-points of the groups along the x-axis.

Author(s)

S Ellison s.ellison@lgc.co.uk

References

Accuracy (trueness and precision) of measurement methods and results – Part 2: Basic method for the determination of repeatability and reproducibility of a standard measurement method. ISO, Geneva (1994).

See Also

plot.mandel.kh

Examples

   data(RMstudy)
   h <- with(RMstudy, mandel.h(RMstudy[2:9], g=Lab))
   gplot(h, las=2) 
   	#Note the absence of indicator lines, title etc. 
   	#compared to plot(h)

Results