Skip to content
Prev 363226 / 398502 Next

changing x and y ranges in a PCA plot created by library(labdsv)

You got a response yesterday telling you that xlim and ylim are not passed to the plot call from plot.

You can see this yourself by examining the code:

labdsv::plot.pca
function (x, ax = 1, ay = 2, col = 1, title = "", pch = 1, ...) 
{
    if (class(x) != "pca") 
        stop("You must specify a an object of class pca")
    plot(x$scores[, ax], x$scores[, ay], asp = 1, col = col, 
        xlab = paste("PCA", ax), ylab = paste("PCA", ay), pch = pch, 
        main = title)
    invisible()
}
<environment: namespace:labdsv>
Please read the Posting guide and post any follow-ups in plain text.