Re: [R] geom_hline

2007-12-25 Thread hadley wickham
On Dec 25, 2007 9:32 PM, ONKELINX, Thierry <[EMAIL PROTECTED]> wrote: > Felipe, > > You'll need to define the limits yourself with scale_y_continuous. > > library(ggplot2) > p <- ggplot(mtcars, aes(x = wt, y=mpg)) + geom_point() > p + geom_hline(intercept=0) + scale_y_continuous(limits = c(0, > ma

Re: [R] geom_hline

2007-12-25 Thread ONKELINX, Thierry
: [EMAIL PROTECTED] namens Jim Lemon Verzonden: di 25-12-2007 10:16 Aan: Felipe Carrillo CC: [EMAIL PROTECTED] Onderwerp: Re: [R] geom_hline Felipe Carrillo wrote: > Hi all: > I am trying to draw a horizontal line along the zero > "Y axis" value but since zero isn't sho

Re: [R] geom_hline

2007-12-25 Thread Jim Lemon
Felipe Carrillo wrote: > Hi all: > I am trying to draw a horizontal line along the zero > "Y axis" value but since zero isn't showing therefore > the line is not drawn. If I set my intercept to 15 > then it'll work but I dont want to hardcode it because > the Y axis parameters could be different f

[R] geom_hline

2007-12-24 Thread Felipe Carrillo
Hi all: I am trying to draw a horizontal line along the zero "Y axis" value but since zero isn't showing therefore the line is not drawn. If I set my intercept to 15 then it'll work but I dont want to hardcode it because the Y axis parameters could be different for another variable. I would like t