Hello to everyone,
I am working with Package 'Momocs' to plot PCA. I have revised my codes according to the manual but still I get this error: Error in layer_morphospace_PCA(., x, position = c("range"), nb = 12, nr = 6, : **
** unused argument (x)
The codes run perfectly when I run line by line but this above error appeared as I run the last line [layer_title(title = "a)", cex =1)] of the below codes:
#PCA
pca_<-PCA(eOTO)
plot_PCA(pca_, ~Station, zoom =0.9, chull = F, eigen = F, morphospace_positions = F, axesnames = F, axesvar = F, points = F) %>%
layer_morphospace_PCA(x, position = c("range"), nb = 12, nr = 6, nc = 5, rotate = 0,
size = 1, col = "#999999", flipx = FALSE, flipy = FALSE,
draw = TRUE)%>%
layer_ellipses( conf = 0.9, lwd = 1, alpha = 0)%>%
layer_axes(lwd = 1)%>%
layer_axesvar(cex=1.5)%>%
layer_ellipsesaxes (conf = 0.5,lwd=1.5)%>%
layer_grid( col = "#999999", lty = 3, grid = 3)%>%
layer_stars(alpha = 0.8)%>%
layer_points( cex=1.3) %>%
#layer_eigen( nb_max =5, cex = 1 )%>%
layer_legend( cex = 1)%>%
layer_title(title = "a)", cex =1)
Thanks for the help. Best regards,