Re: [R] two colors and putting lines on bar plots

2009-02-26 Thread Greg Snow
09 7:05 PM > To: r-help@r-project.org > Subject: [R] two colors and putting lines on bar plots > > Hi all, > > I want to represent two categories with one color and have other > categories > a different color on a bar plot. > > I can do this using for one categor

[R] two colors and putting lines on bar plots

2009-02-25 Thread John Malone
Hi all, I want to represent two categories with one color and have other categories a different color on a bar plot. I can do this using for one category/number using the ifelse call in col but how to extend to two categories/numbers? barplot(dataframe$vector_o_numbers, col=ifelse(dataframe$vect