[R] SOLVED: Re: Changing gird marks in ggplot2

Christopher David Desjardins cddesjardins at gmail.com
Sat Apr 25 06:57:13 CEST 2009


i solved this thanks

On Fri, 2009-04-24 at 23:51 -0500, Christopher Desjardins wrote:
> Hi,
> When I zoom into a graph created in ggplot2 with the
> coord_cartesian(ylim=c(0,5)) option, I have no values labelled on my
> y-axis. For this graph ggplot2 only puts labels the y-axis at
> intervals of 10 (i.e. 0, 10, 20, ...). However, the major portion of
> the graph I am interested in is located between the values of 0 and 5
> on the y-axis (thus why I am zoooming). How can I coerce ggplot2 into
> making the major gird marks so that 0, 1, 2, 3, 4, and 5 are shown as
> it is currently showing no label?
> Thanks. Also please cc me directly as I'm a digest subscriber.
> Chris




More information about the R-help mailing list