Adds points on graphics.
addpoint.Rd
Adds a trellis
object containing one or several points on one or several graphical objects.
Arguments
- object
an object of class
ADEg
orADEgS
- xcoord
an integer (or a vector) indicating where
label
is(are) plotted on the x-axis, passed to thepanel.points
function of thelattice
package- ycoord
an integer (or a vector) indicating where
label
is(are) plotted on the y-axis, passed to thepanel.points
function of thelattice
package- plot
a logical indicating if the graphics is displayed
- ...
Other arguments. Additional graphical parameters (see the
ppoints
list inadegpar
andtrellis.par.get
). Ifobject
is anADEgS
, the argumentwhich
identify whichADEg
is/are used for superposition.
Author
Aurelie Siberchicot aurelie.siberchicot@univ-lyon1.fr and Stephane Dray
Examples
data(deug, package = "ade4")
deug$cent[1]
#> Algebra
#> 50
g1 <- s1d.density(deug$tab[, 1], plot = FALSE)
addpoint(g1, xcoord = deug$cent[1], ycoord = 0, ppoints = list(col = "black",
pch = "*", cex = 3))