How to colour only selected datapoint with specific colour and others with default in PCA autoplot
0
0
Entering edit mode
3.3 years ago
drajangirija ▴ 10

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 • 472 views
ADD COMMENT

Login before adding your answer.

Traffic: 2505 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6