Re: [R] ggplot not showing all the years on the x-axis

2013-01-08 Thread Francesco Sarracino
Indeed, it works. I've been mumbling around with scale_x_discrete(), but without any success. Thanks a lot, Yao. You helped me a lot! f. On 8 January 2013 10:06, Yao He wrote: > Hi,this is a question about how to set the scale,try this > add a scale_x_discrete() like that: > > plot <- tmpplot +

Re: [R] ggplot not showing all the years on the x-axis

2013-01-08 Thread Yao He
Hi,this is a question about how to set the scale,try this add a scale_x_discrete() like that: plot <- tmpplot + geom_line()+scale_x_continuous(breaks=ii) Yao He 2013/1/8 Francesco Sarracino : > Dear R helpers, > > I am currently having hard time fixing the values on the x-axis of a plot > with