On Fri, Nov 20, 2009 at 12:53 PM, Dan Kortschak
<dan.kortsc...@adelaide.edu.au> wrote:
> I have sorted out how to do this - by much trial an error (a comment
> from Deepayan in a post some years ago pointed which way to go, though
> it took a lot of searching to find even where to start with it:
>
> I've bound the two sets of data together, making the relevant part an
> ordered factor. It's probably not the nicest way to do it, but it works.

Your example is not reproducible, so it's hard to suggest
alternatives. But it seems that your original 'chromosomes' data frame
has things in the right order, so a simple fix would be

chromosomes$name <- with(chromosomes, factor(name, levels = name))

-Deepayan

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to