Re: [R] Color problem for 2 simple graphs

2015-01-08 Thread varinsacha
William, Many thanks It perfectly works. Best Envoyé de mon iPhone Le 8 janv. 2015 à 21:24, William Dunlap a écrit : > Supply a vector of colors. E.g., > barplot(table(mtcars$cyl), col=c("red","yellow","green")) > boxplot(with(mtcars, split(wt, cyl)), col=c("red","yellow","green")) > >

Re: [R] Color problem for 2 simple graphs

2015-01-08 Thread William Dunlap
Supply a vector of colors. E.g., barplot(table(mtcars$cyl), col=c("red","yellow","green")) boxplot(with(mtcars, split(wt, cyl)), col=c("red","yellow","green")) Bill Dunlap TIBCO Software wdunlap tibco.com On Thu, Jan 8, 2015 at 12:06 PM, varin sacha wrote: > Hi R-experts, > Basic question

[R] Color problem for 2 simple graphs

2015-01-08 Thread varin sacha
Hi R-experts, Basic questions (sorry for that) but after many attempts I don't get it. So in case of you might have time to give me some responses, would be highly appreciated. Two simple graphs (barplots and boxplots). Everything is going fine but I would like to have my 2 bars (male and female