Adds histograms and density lines against a bidimensional graphics.
Description
Adds the two marginal histograms and density lines of each axis against an ADEg.S2
object.
Usage
1 2 
Arguments
object 
an 
bandwidth 
used for the calculations of the density lines
(see the 
gridsize 
used for the calculations of the density lines
(see the 
kernel 
used for the calculations of the density lines
(see the 
cbreaks 
number of cells for the histograms per interval of the grid of the bidimensional graphics. 
plot 
a logical indicating if the graphics is displayed 
storeData 
a logical indicating if the data should be stored in
the returned object. If 
pos 
an integer indicating the position of the
environment where the data are stored, relative to the environment
where the function is called. Useful only if 
... 
Additional graphical parameters (see

Details
Density is calculated using the function bkde
of the KernSmooth
package.
Value
An ADEgS
object, a list of four graphical objects,
one ADEg.S2
and three trellis
(from lattice
).
Their names are:

the 

top histogram, a 

right histogram, a 

corner graphics linking the two histograms, a 
Note
Into the dots arguments, the usual parameters for the s.label
can be given with the object
key.
Trellis parameters are used for the three remaining graphics.
plot.polygon
handles the histogram aspect, add.line
the
graduations lines and plot.line
the density lines.
Finally, for the link
graphic, labels aspect can be changed
using a plabels
list, as for an S2.label
object.
Author(s)
Alice JulienLaferriere, Aurelie Siberchicot aurelie.siberchicot@univlyon1.fr and Stephane Dray
See Also
ADEg.S2
ADEgS
Examples
1 2 3 4 5 6 7 8  data(rpjdl, package = "ade4")
coa1 < ade4::dudi.coa(rpjdl$fau, scannf = FALSE, nf = 4)
labli < s.label(coa1$li)
g1 < addhist(labli)
g2 < addhist(labli, plabels.cex = 0, cbreaks = 3)
labco < s.label(coa1$co)
g3 < addhist(labco, plabels.cex = 0, cbreaks = 3)
update(g3, pbackground.col = "grey85")
