search for: expand_range

Displaying 1 result from an estimated 1 matches for "expand_range".

2007 Nov 01
1
ggplot2 - expand range?
...10, y=runif(10)) > plot<-ggplot() > plot<-plot+layer(data=plotdata, mapping=aes_string(x='x',y='y'), geom='point', stat='identity', size=4) > plot<-plot+ scale_y_continuous(limits=c(0,1)) > print(plot) I believe there may be a way to use expand_range to fix this (I think I read about it somewhere), but I do not seem to find out how. I have searched the ggplot help and the archives, but cannot find the answer to this issue. I would really appreciate if anyone could give me a pointer. I am using R2.6.0 (patched) on Windows Thanks, Pedro