R Under development (unstable) (2023-10-09 r85295 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(adegraphics) The legacy packages maptools, rgdal, and rgeos, underpinning the sp package, which was just loaded, were retired in October 2023. Please refer to R-spatial evolution reports for details, especially https://r-spatial.org/r/2023/05/15/evolution4.html. It may be desirable to make the sf package available; package maintainers should consider adding sf to Suggests:. Registered S3 methods overwritten by 'adegraphics': method from biplot.dudi ade4 kplot.foucart ade4 kplot.mcoa ade4 kplot.mfa ade4 kplot.pta ade4 kplot.sepan ade4 kplot.statis ade4 scatter.coa ade4 scatter.dudi ade4 scatter.nipals ade4 scatter.pco ade4 score.acm ade4 score.mix ade4 score.pca ade4 screeplot.dudi ade4 > pdf("table.image.pdf") > > ## ex1 > x <- 1:4 > y <- 1:4 > df <- data.frame(as.matrix(cbind(x, y))) > g1 <- table.image(df, col = 2:4) > update(g1, plegend.drawColorKey = TRUE) > > ## ex2 > df <- matrix(0, 10, 10) > df[1:3, 1:3] <- 5 > g2 <- table.image(df) > g3 <- table.image(df, breaks = c(5, 2, 0)) > > ## ex3 > data(rpjdl, package = "ade4") > X <- data.frame(t(rpjdl$fau)) > Y <- data.frame(t(rpjdl$mil)) > coa1 <- ade4::dudi.coa(X, scan = FALSE) > x <- rank(coa1$co[, 1]) > y <- rank(coa1$li[, 1]) > g4 <- table.image(Y, coordsx = x, coordsy = 1:8, axis.text = list(alpha = 0), pgrid.col = "black", pgrid.lwd = 0.8, col = c("white", "black"), plegend.drawKey = FALSE) > g5 <- table.image(X, coordsx = x, coordsy = y, ptable = list(x = list(tck = 0), y = list(tck = 4)), pleg.drawKey = FALSE, labelsy = paste(" ", row.names(X), sep = "")) > g6 <- ADEgS(list(g4, g5), positions = rbind(c(0, 0, 1, 0.3), c(0, 0.4, 1, 1))) > > proc.time() user system elapsed 1.00 0.09 1.07