Learn R Programming

adegraphics (version 1.0-5)

cbindADEg: Combine ADEg objects by columns or rows

Description

Take a sequence of ADEg, ADEgS or trellis arguments and combine by columns or rows, respectively.

Usage

cbindADEg(g1, g2, ..., plot = FALSE) rbindADEg(g1, g2, ..., plot = FALSE)

Arguments

g1
an object of class ADEg, ADEgS or trellis
g2
an object of class ADEg, ADEgS or trellis
...
other objects of class ADEg, ADEgS or trellis
plot
a logical indicating if the graphics is displayed

Value

an ADEgS object

See Also

ADEg ADEgS ADEgS

Examples

Run this code
data(jv73, package = "ade4")
pca1 <- ade4::dudi.pca(jv73$morpho, scannf = FALSE)
g1 <- s.label(pca1$li, plabels.optim = TRUE, plot = FALSE)
g2 <- s.class(pca1$li, jv73$fac.riv, starSize = 0, ellipseSize = 0, chullSize = 1, 
  ppolygons.alpha = 0.4, col = rainbow(12), ppoints.cex = 0, plot = FALSE)
g3 <- rbindADEg(cbindADEg(g1, g2), superpose(g1, g2), plot = TRUE)

Run the code above in your browser using DataLab