performs a scatterplot and the two marginal histograms of each axis.
s.hist(dfxy, xax = 1, yax = 2, cgrid = 1, cbreaks = 2, adjust = 1, ...)
The matched call.
a data frame with two coordinates
column for the x axis
column for the y axis
a character size, parameter used with par("cex")*cgrid
to indicate the mesh of the grid
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.
a parameter passed to density
to display a kernel density estimation
further arguments passed from the s.label
for the scatter plot
Daniel Chessel
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)
Run the code above in your browser using DataLab