Hi,

I have been trying to re-order several items in a trellised barchart 
display in lattice, but can't seem to figure it out.

###sample code, Stage and Colony have 2 and 3 levels respectively.

barchart(Activity ~ Percent | Stage + Colony, data = Percent.df,
  horizontal = TRUE, layout = c(2,3),
  xlab = "Percent Time Engaged in Activity",
  ylab = "Activity")

This essentially produces the display I would like, only I would like to 
have the second column first and the first and third panels switched.  In 
addition, I would like to re-order the y-axis labels ("Activities") so 
that they are in alphabetical order starting with A at the top...currently 
A is at the bottom.  I have been able to switch the actual data in the 
panels useing barchart(rev(Activity~ Percent...but cannot get the actual 
labels to switch.  Thanks in advance.

Peter

USF&WS
San Francisco Bay National Wildlife Refuge Complex
Common Murre Restoration Project
peter_kappes@fws.gov

	[[alternative HTML version deleted]]


