PCA result should only contains numeric values. If you want to colorize by non-numeric values which original data has, pass original data using data keyword and then specify column name by colour keyword. Use help(autoplot.prcomp) (or help(autoplot.*) for any other objects) to check available options.
Plotting PCA (Principal Component Analysis)
PCA Plot in R We are gonna work on the ‘Iris’ dataset, which is built into R. It is a multivariate dataset that consists of data on 50 samples from each of ...
How To Make PCA Plot with R - GeeksforGeeks
Principal component analysis is a widely used and popular statistical method for reducing ... Computing the principal components in R is straightforward with ...
Principal Component Analysis with R Example