Skip to content
Prev 168122 / 398502 Next

ggplot seq

Dear Thierry:
Thanks for the factor/level advice. I was actually reading about it last night and playing further with my data I was able to make it work with the code below:

options(scipen=3)
bargraph <- qplot(factor(Week,levels=c(27:52,1:26)),FryPassage,
data=WFBar,geom="bar",fill=I("grey65"),colour=I("goldenrod"),
  ylab="Numb of Fish",xlab="Week") + scale_x_discrete(breaks=seq(1,52,2))
   bargraph

That's exactly the same thing you are saying about levels and factors. This is a great learning experience. Thanks again.

Felipe D. Carrillo  
Supervisory Fishery Biologist  
Department of the Interior  
US Fish & Wildlife Service  
California, USA
--- On Sat, 1/24/09, ONKELINX, Thierry <Thierry.ONKELINX at inbo.be> wrote: