bertinrect: bertinrect

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Display a data matrix using parallel coordinates as suggested by J. Bertin. Coordinates are set up such that each element x[i, j]is represented in a unit square with bottom left at coordinates (i, j). By convention, variables are in rows, and cases are in columns.

plot.bertin provides a high-level interface to bertinrect.

Usage

1
2
3
4
5
6
7
bertinrect(z, main = deparse(substitute(z)), sepwd = 0.05,  
	pars,
	aspz,
	mar = c(1, 1, 2, 1) + 0.1,  
	names = TRUE,
	asp,
	 ...)

Arguments

z

a data matrix, or data structure that can be casted to a matrix.

main

a main title for the plot, see also title.

sepwd

padding width for cells. The display of an element should be based at (i + sepwd, j + sepwd).

mar

margin. Margin space for row and column labels will be added.

pars

Graphical parameters, see par. See details

aspz

Applied as a scaling factor to to nrow(z)/ncol(z). The aspect ratio of the display will be adjusted to a near match, taking into accout margin space as required.

names

logical. If true, show row and column names.

asp

Aspect ratio. Kept for consistency with heritage. If present, overrides aspz.

...

additional parameters, passed to rect.

Details

All facilities of rect are accessible, to supply colour, shading, rearrangement.

If pars is undefined, default parameters are selected, based on the data values and labels. The picture aspect ratio is chosen to allocate unit squares to each data cell. If pars is NULL, no graphical parameters are changed, else pars is passed to par

Row and column names are displayed in the margins. Adjust mar or adjust the font size if necessary.

Value

A list of graphical parameters, used to set par is returned as invisible result. Use this to generate series of plots with comparable geometry-

This is subject to change.

Author(s)

G. Sawitzki

References

de Falguerolles, A., Friedrich, F., Sawitzki, G. (1997): A Tribute to J. Bertin's Graphical Data Analysis. In: Proceedings of the SoftStat '97 (Advances in Statistical Software 6), 11–20.

This paper is included in the documentation.

http://bertin.r-forge.r-project.org/

See Also

image.bertin, for a quick solution which uses display space to a maximum.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(bertin)
data(Hotel)
bertinrect(Hotel)

nrow <- 3; ncol <- 5
zunif <- matrix(runif(nrow*ncol), nrow, ncol)
colnames(zunif) <- colnames(zunif, do.NULL=FALSE)
rownames(zunif) <- rownames(zunif, do.NULL=FALSE)
bertinrect(zunif, yaxt="n")

bertinrect(zunif, yaxt="n", aspz=0.5)

bertin documentation built on May 2, 2019, 5:54 p.m.

Related to bertinrect in bertin...