Re: [R] ggplot2: scaling and tick mark of x-axis

2008-07-03 Thread hadley wickham
Hi Henning, > It works, however i am not satisfied with the output. I would like to have > the x-axis starting at "2006-08-01" and ending at "2007-08-31" with tick > marks and labels and each 1st of the months. Unfortunately this is a deficiency in the date scale - there's no way to manually set

[R] ggplot2: scaling and tick mark of x-axis

2008-07-03 Thread Henning Wildhagen
Dear list, i am trying to plot data in a way like this: Date<-seq(as.Date("2006-08-29"), as.Date("2007-08-28"), by="2 weeks") var<-rnorm(27, 1, 2500) err<-rnorm(27, 3000, 1000) df<-data.frame(cbind(Date, var, err)) library(ggplot2) g <- ggplot(df, aes(x=Date, y=var, min=(var - err), max=(