On 10/19/07, Allison Bailey <[EMAIL PROTECTED]> wrote: > Thanks for the suggestions. The factor function on the RYEAR column worked > well. > > I need to clarify my question about the order of the plot. as.table appears > to be concerned with the order that each panel is plotted. Is that correct? > > I'm interested in controlling the order of the elements on the y-axis of the > graph. Right now, the species are listed in reverse alphabetical order. I'm > interested in having them in alphabetical order or in order by the magnitude > of their values (highest on the top, to lowest on the bottom). Any > additional suggestions? >
Can't think of anything simpler than changing the order of the levels: > foo = data.frame(a = gl(10, 1), x = sort(runif(10))) > dotplot(a ~ x, foo) > dotplot(factor(a, levels = rev(levels(a))) ~ x, foo) -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.