Re: [R] Alphabetical sequence of data along the x-axis in a box plot

2011-10-13 Thread Dan_K
The easiest work-around I've found for this problem is to create a vector in your data frame just using numbers to order them how you want, create a separate "labeling" data frame with those numbers and corresponding text labels, and then enter the vector with the grouping names from the labeling f

Re: [R] Alphabetical sequence of data along the x-axis in a box plot

2010-09-27 Thread Peter Alspach
rge','very large')) with(eddie, plot(grp, wgt)) HTH ... Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Hughes, Ed > Sent: Tuesday, 28 September 2010 9:00 a.m. > To: r-help@r-pro

Re: [R] Alphabetical sequence of data along the x-axis in a box plot

2010-09-27 Thread Joshua Wiley
Hi Eddie, I've been on a role with the iris data, so I figure why stop. Assuming that one variable is a factor, you can easily reverse it, and if you want fine tuned control, then just reorder the levels. Here is an example: dat <- iris boxplot(Sepal.Length ~ Species, data = dat) boxplot(Sepal.L

[R] Alphabetical sequence of data along the x-axis in a box plot

2010-09-27 Thread Hughes, Ed
Hello All, I noticed when I generated some boxplots, the data is presented in alphabetical order along the x-axis (the data in this case was the four quandrants of a sample area (NE,NW, SE, SW) that was my first column of data). Is there a way to have R plot the data in a different order? I i