Skip to content
Back to formatted view

Raw Message

Message-ID: <efb536d50812111158v19345567l5fae882f176a1eae@mail.gmail.com>
Date: 2008-12-11T19:58:13Z
From: Sarah Goslee
Subject: Row order in plot
In-Reply-To: <20962774.post@talk.nabble.com>

It would be easier to answer your question if we knew what your
data look like, what R commands you've tried, and what result
you want.

One possibility: plot the data against 1:nrow(yourdata), and add
the row names as labels.

Sarah

On Thu, Dec 11, 2008 at 2:35 PM, qroberts <lvaickus at bu.edu> wrote:
>
> I'm new to R so forgive me if this seems like a simple question:
>
> So I have table where the row titles are string variables. When I plot the
> data with rows along the x-axis, the data is ordered alphabetically as
> opposed to the order of the table.
>
> How can I preserve the row order of the table in the plot?
>
> Thanks in advance.



-- 
Sarah Goslee
http://www.functionaldiversity.org