I am trying to run PlotIndiv on my PCA, CCA and PLS data. However, I see the following error message.
*tmp*, “pch.legend”, value = c(NA, NA, 2L, :
replacement has 1155 rows, data has 200
In addition: Warning message:
In shape.input.plotIndiv(object = object, n = n, blocks = blocks, :
‘ind.names’ is set to FALSE as ‘pch’ overrides it
And the code I have run is
plotIndiv(otus.pca, group= metadata_arcli$BMI,
title = ‘OTUs, PCA, comp 1 - 2’, legend=TRUE,
legend.title = ‘BMI’,
pch = as.factor(metadata_arcli$Sex),
legend.title.pch = ‘Sex’)
Could you please help me resolve this.
Thank you so much.