Re: [R] Coerce rownames to factor for ordering

2012-11-29 Thread Jean V Adams
Josh, The code you submitted is not reproducible. I don't have the following objects: barchart, DataToPlot..SeCl, or Colors. However, I think I can answer your questions, with some modified code ... A rowname can't be a factor. But you can still use a factor to sort the rows of your

[R] Coerce rownames to factor for ordering

2012-11-29 Thread LCOG1
Hi all, I think this might be an easy one but I cannot think of a way to do this other than what I am currently attempting. I simply want to sort my data frame's rownames by a defined vector so that the plots I generate from that vector are in the desired order Consider the test data below: