I'm a complete beginner to R and have this question. I'm using the following code to generate a colour list and then create a massive scatterplot matrix. I want to assign specific colours to the first column of my matrix(categorical with 4 categories). Running this code works fine but how do I verify that the colours that I intend to specify for each of the categorical variables is correct?
Basically I want to achieve green for 'control', orange for 'low', brown for 'medium' and black for 'high'.
col.list<-c("green","orange","brown","black")
palette(col.list)
pairs(Indices[,4:17], col=Indices[,1])
Thank you for any help!