Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sco.boxplot

Representation of the link between a variable and a set of qualitative variables


Description

represents the link between a variable and a set of qualitative variables.

Usage

sco.boxplot(score, df, labels = names(df), clabel = 1, xlim = NULL, 
    grid = TRUE, cgrid = 0.75, include.origin = TRUE, origin = 0, 
    sub = NULL, csub = 1)

Arguments

score

a numeric vector

df

a data frame with only factors

labels

a vector of strings of characters for the labels of variables

clabel

if not NULL, a character size for the labels, used with par("cex")*clabel

xlim

the ranges to be encompassed by the x axis, if NULL they are computed

grid

a logical value indicating whether the scale vertical lines should be drawn

cgrid

a character size, parameter used with par("cex")*cgrid to indicate the mesh of the scale

include.origin

a logical value indicating whether the point "origin" should be belonged to the graph space

origin

the fixed point in the graph space, for example 0 the origin axis

sub

a string of characters to be inserted as legend

csub

a character size for the legend, used with par("cex")*csub

Author(s)

Daniel Chessel

Examples

w1 <- rnorm(100,-1)
w2 <- rnorm(100)
w3 <- rnorm(100,1)
f1 <- gl(3,100)
f2 <- gl(30,10)
sco.boxplot(c(w1,w2,w3), data.frame(f1,f2))

data(banque)
banque.acm <- dudi.acm(banque, scan = FALSE, nf = 4)
par(mfrow = c(1,3))
sco.boxplot(banque.acm$l1[,1], banque[,1:7], clab = 1.8)
sco.boxplot(banque.acm$l1[,1], banque[,8:14], clab = 1.8)
sco.boxplot(banque.acm$l1[,1], banque[,15:21], clab = 1.8)
par(mfrow = c(1,1))

ade4

Analysis of Ecological Data: Exploratory and Euclidean Methods in Environmental Sciences

v1.7-16
GPL (>= 2)
Authors
Stéphane Dray <stephane.dray@univ-lyon1.fr>, Anne-Béatrice Dufour <anne-beatrice.dufour@univ-lyon1.fr>, and Jean Thioulouse <jean.thioulouse@univ-lyon1.fr>, with contributions from Thibaut Jombart, Sandrine Pavoine, Jean R. Lobry, Sébastien Ollier, Daniel Borcard, Pierre Legendre, Stéphanie Bougeard and Aurélie Siberchicot. Based on earlier work by Daniel Chessel.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.