[R] Row order in plot
Sarah Goslee
sarah.goslee at gmail.com
Thu Dec 11 20:58:13 CET 2008
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
More information about the R-help
mailing list