Re: [R] ggplot2: changing axis labels in ggplot()

2007-11-13 Thread hadley wickham
On Nov 13, 2007 7:23 PM, James D Forester <[EMAIL PROTECTED]> wrote: > > > hadley wrote: > > > > > > That's from a previous version, now you need to do: > > > > p + scale_x_continuous("Predictor") + scale_y_continuous("Response") > > > > (or scale_x_discrete if discrete) > > > > > > Thanks Hadley -

Re: [R] ggplot2: changing axis labels in ggplot()

2007-11-13 Thread James D Forester
hadley wrote: > > > That's from a previous version, now you need to do: > > p + scale_x_continuous("Predictor") + scale_y_continuous("Response") > > (or scale_x_discrete if discrete) > > Thanks Hadley -- that worked fine. However, I just noticed that when I try to add an abline to this plo

Re: [R] ggplot2: changing axis labels in ggplot()

2007-11-13 Thread hadley wickham
On Nov 13, 2007 4:30 PM, James D Forester <[EMAIL PROTECTED]> wrote: > > Hi all, > > For various reasons, I need to use ggplot instead of qplot for a complex > figure. Everything is working fine, except I cannot figure out how to rename > the axis labels in ggplot. I have pasted a simple example be

[R] ggplot2: changing axis labels in ggplot()

2007-11-13 Thread James D Forester
Hi all, For various reasons, I need to use ggplot instead of qplot for a complex figure. Everything is working fine, except I cannot figure out how to rename the axis labels in ggplot. I have pasted a simple example below. Any ideas on what I am doing wrong? Thanks for your help. James libra