plot.bertin: Bertin plot

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

Description

Display a Bertin plot of a data matrix. This is a high level variant of bertinrect.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'bertin'
plot(z, 
            roworder, colorder,
            var.orientation = c("byrow", "bycolumn", "global"),  
            main, sub,
            mar= c(3, 1, 3, 1) + 0.1,
            zcol, 
            palette = gray((255:0 / 255)^0.5),
            showpalette = TRUE,
            ...)

Arguments

z

a data matrix.

roworder

permutation used for rows.

colorder

permutation used for columns.

var.orientation

variable orientation. Should be one of "byrow"=Bertin conventions, "bycolumn"=R conventions, "global".

main

main title.

sub

sub-title.

mar

margin. Margin space for row and column labels will be added. The R default is c(5, 4, 4, 2) + 0.1.

zcol

a data matrix of index values for use with the colour palette.

palette

a colour palette for the display of the data matrix.

showpalette

include palette ramp in display.

...

additional parameters, passed to bertinrect.

Details

A grid of rectangles is displayed to represent the data. Typically, the value is encoded as height. See the references below for details.

sub is shown in the first margin line. To get more control of title format and pages, use title.

If showpalette is TRUE, the palette is shown in the plot margin area.

Value

A data matrix with display specification added as attributes. Details are subject to change. This is invisible.

Note

Still experimental. This is a bertin specific wrapper for bertinrect.

We try to follow Bertin's original model, but consistency with R traditions suggest other choices occasionally.

Following Bertin, we display variables as rows as a default. This can be controlled by var.orientation.

We use a grey level palette as a default, whereas Bertin used black and white. Use palette = c("white", "black") as an argument to get Bertin's choice.

Break points for colour choice are based on range. We use the mid-range as default cut point for a two colour choice, whereas Bertin uses the mean as cut point.

Author(s)

G. Sawitzki

References

J. Bertin: La graphique et le traitement graphique de l'information. Flammarion: Paris 1977.

A. de Falguerolles; F. Friedrich & G Sawitzki: A Tribute to J. Bertin's Graphical Data Analysis. Published in: W. Bandilla, F. Faulbaum (eds.): SoftStat '97. Advances in Statistical Software 6. Lucius & Lucius, Stuttgart 1997. (provided in the doc section of this package)

See Also

image.bertin

Examples

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

plot.bertin(Hotel,aspz=0.5)

plot.bertin(Hotel, palette=c("white","black"))

# rows rearranged by rank correlation to varible 19 (Occupation)
plot.bertin(Hotel, roworder = bertin.order(bertinrank(Hotel), pivot="Occupation"))

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

Related to plot.bertin in bertin...