search for: vector_o_numb

Displaying 1 result from an estimated 1 matches for "vector_o_numb".

Did you mean: vector_o_number
2009 Feb 26
1
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 category/number using the ifelse call in col but how to extend to two categories/numbers? barplot(dataframe$vector_o_numbers, col=ifelse(dataframe$vector_o_numbers == 00, "red", "black"), names.arg=dataframe$labels) For example if I wanted to label 00 and 01 red and have the rest of the categories colored black....how to do this? Finally........I'd Iike to put a line on the bar plot represent...