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
Post a Comment