My data matrix has 100 rows and 900 columns. Here each row represents a IR spectra. The column represents the wavenumbers. The first 23 rows belong to different IR spectra from the same sample (i.e spectra from 23 different positions in the sample). Similarly I have measured 5 samples each with certain no.of observations. For ex: 1-23 rows belongs to sample 1, 24:40 belongs to sample 2. Now I want to colour the scores in my PCA score plot according to the sample colours and label the colour with the sample name. Like, 23 scores in blue and then a label referring Sample 1.
I have added an extra column named label, to my data matrix referring the sample names. But I do not how to proceed further?