This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to colour only selected datapoint with specific colour and others with default in PCA autoplot

I have plotted PC using autoplot and coloured it based on the species( 30 species). Of these I need to highlight only one selected species with black colour and bigger size and other 29 with default by species

I tried the below function

autoplot(sample_pca, data = sample, colour = "species")

How to modify the above function to plot data point with different colours

eg. Species1 - black Species2 - species30 - each species in different colour based on any colour pattern

autoplot r pca ggfortify

0 answers

No answers yet.

Log in to answer this question.