Re: [R] ggplot seq

2009-01-24 Thread Felipe Carrillo
. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA --- On Sat, 1/24/09, ONKELINX, Thierry wrote: > From: ONKELINX, Thierry > Subject: RE: [R] ggplot seq > To: mazatlanmex...@yahoo.com, r-h...@stat.math.ethz.ch &

Re: [R] ggplot seq

2009-01-24 Thread ONKELINX, Thierry
yahoo.com] Verzonden: vrijdag 23 januari 2009 18:44 Aan: r-h...@stat.math.ethz.ch; ONKELINX, Thierry Onderwerp: RE: [R] ggplot seq Actually 'levels' works OK by ordering the x axis labels but since I have 52 weeks it gets too crowded. Here's part of my dataset with a reproducible exam

Re: [R] ggplot seq

2009-01-23 Thread Felipe Carrillo
't seem to work with scale_x_continuous(breaks= c(seq(27,51,2),seq(1,25,2))). # So, my question here is: How can I use the seq() function to create my custom thick marks along the x axis (same order # as the WFBar object skipping one week in between? --- On Fri, 1/23/09, ONKELINX, Thier

Re: [R] ggplot seq

2009-01-23 Thread Felipe Carrillo
Thanks Thierry: The use of levels is what I needed, thanks for your help. From: ONKELINX, Thierry Subject: RE: [R] ggplot seq To: mazatlanmex...@yahoo.com, r-h...@stat.math.ethz.ch Date: Friday, January 23, 2009, 3:01 AM Dear Felipe, Provide a dummy sample if your dataset is big or

Re: [R] ggplot seq

2009-01-23 Thread ONKELINX, Thierry
Dear Felipe, Provide a dummy sample if your dataset is big or confidential. The actual values are not that important to figure out what kind of plot you want. How did you code Week? Numeric? Try convert it into a factor with levels = c(27:52, 1:26). And then set the breaks to seq(1, 52, by = 2).