addpoint {adegraphics} | R Documentation |
Adds points on graphics.
Description
Adds a trellis
object containing one or several points on one or several graphical objects.
Usage
addpoint(object, xcoord, ycoord, plot = TRUE, ...)
Arguments
object |
an object of class |
xcoord |
an integer (or a vector) indicating where |
ycoord |
an integer (or a vector) indicating where |
plot |
a logical indicating if the graphics is displayed |
... |
Other arguments. Additional graphical parameters (see the |
Value
An object of class "ADEgS"
.
Author(s)
Aurelie Siberchicot aurelie.siberchicot@univ-lyon1.fr and Stephane Dray
See Also
Examples
data(deug, package = "ade4")
deug$cent[1]
g1 <- s1d.density(deug$tab[, 1], plot = FALSE)
addpoint(g1, xcoord = deug$cent[1], ycoord = 0, ppoints = list(col = "black",
pch = "*", cex = 3))