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:

Thanks for the comments. These codes work perfectly with older Version (e.g. 1.2.9) of Momocs. Though I revised my codes according to the latest version of this pancake.

By piping in the pca function result to layer morphospace you satisfy x without needing to mention it, so your mention of it as a a param is a fault.
Either remove that, because you use pipe, or don't use pipe and set x= to the value of the plot pca result you want to start with.

In these codes, in these codes I have replaced morphospace to morphospace_positions and layer_morphospace to layer_morphospace_PCA following the manual of Momocs Version: 1.3.2. Could you kindly revise these codes as I did not understand the procedure you have mentioned. Many thanks once again.
Best regards,