Re: [R] scale_x_continuous

2007-12-26 Thread hadley wickham
> dt + scale_x_date() > dt + scale_x_date(format="%m/%d") > dt + scale_x_date(format="%W")+ You can only have one x scale - the last one overrides all the others. The date scale (currently) doesn't have a limits setting (what units would you specify it in?), but you could use subset to plot onl

[R] scale_x_continuous

2007-12-26 Thread Felipe Carrillo
Hello all: Any ideas on how can I set the X axis limits to week 1? I tried the scale_x_continuous(limits=c(1,NA) but I get an error message. It works for the Y axis though. library(ggplot2) df <- data.frame(date = seq(Sys.Date(), len=100, by="1 day")[sample(100, 50)],price = runif(50)) df <- df[or