colors - Commands for colouring in categories in R in different colours? -


i need colour in categories in same colour in boxplot in r have no clue how so. there 8 categories , need 4 of them in 1 colour, 2 in colour , remaining 2 1 colour each. problem have not in order, i.e. 1,5-one colour, 3,4,6,8 1 colour , 7-one colour , 2-one colour. help?????

you can use col argument boxplot:

boxplot(count~spray, data=insectsprays, col=c("white", "green", "green", "white", "blue", "yellow")) 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -