s.hist: Display of a scatterplot and its two marginal histograms

Description Usage Arguments Value Author(s) Examples

Description

performs a scatterplot and the two marginal histograms of each axis.

Usage

1
s.hist(dfxy, xax = 1, yax = 2, cgrid = 1, cbreaks = 2, adjust = 1, ...)

Arguments

dfxy

a data frame with two coordinates

xax

column for the x axis

yax

column for the y axis

cgrid

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

cbreaks

a parameter used to define the numbers of cells for the histograms. By default, two cells are defined for each interval of the grid displayed in s.label. With an increase of the integer cbreaks, the number of cells increases as well.

adjust

a parameter passed to density to display a kernel density estimation

...

further arguments passed from the s.label for the scatter plot

Value

The matched call.

Author(s)

Daniel Chessel

Examples

1
2
3
4
5
data(rpjdl)
coa1 <- dudi.coa(rpjdl$fau, scannf = FALSE, nf = 4)
s.hist(coa1$li)
s.hist(coa1$li, cgrid = 2, cbr = 3, adj = 0.5, clab = 0)
s.hist(coa1$co, cgrid = 2, cbr = 3, adj = 0.5, clab = 0)

Example output

[1] 10 20 30
[1]  5 10 15 20 25 30
[1]  5 10 15

ade4 documentation built on May 2, 2019, 5:50 p.m.

Related to s.hist in ade4...