P1 <- ggplot(xy.data, aes(x, y))
P1 <- P1 + layer(geom = "point")
P1 + opts(axis.line = theme_segment())
Initially I had the opts added to the first line with the same results
I also tried
qplot(x, y) + opts(axis.line = theme_segment())
The x-axis line shows up perfectly in both cases
Thanks for any help
I can't reproduce it, in the following example, both axes are visible:
x=1:10
xy.data=data.frame(x=x,y=y)
P1 <- ggplot(xy.data, aes(x, y))
P1 <- P1 + layer(geom = "point")
P1 + opts(axis.line = theme_segment())
not the same for you?
regards,
stefan
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> To post to this group, send email to ggp...@googlegroups.com
> To unsubscribe from this group, send email to
> ggplot2+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/ggplot2
>
I ran your script (adding in y=1:10) with the same results, no y-axis
line. I have reinstalled R + ggplot2 with no success. I have also
tried saving the plot in case it was simply a graphics display error.
Since it is working for you I can only assume it is my machine that is
causing the trouble. I'll try my home comp tonight and let you know
the results.
- Luke
Yes, this is exactly what happens. Unfortunately it's not trivial to
change this, because axis and panels are drawn in completely different
steps. It's added to the bug list -
http://github.com/hadley/ggplot2/issues/issue/78
Hadley
>
> FWIW, the same behavior is visible in the PDFs of the ggplot2 book (from
> SpringerLink), fig. 8.3 (p. 145).
>
> Jonathan
>
>
>
> On Fri, Feb 19, 2010 at 6:16 PM, Luke <justar...@yahoo.com> wrote:
>>
>> I ran the test script above on my home computer and the same problem
>> occured. This is also with a fresh install of R and ggplot2 off of the
>> Berkley mirror.
>>
>> --
>> You received this message because you are subscribed to the ggplot2
>> mailing list.
>> To post to this group, send email to ggp...@googlegroups.com
>> To unsubscribe from this group, send email to
>> ggplot2+u...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/ggplot2
>
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> To post to this group, send email to ggp...@googlegroups.com
> To unsubscribe from this group, send email to
> ggplot2+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/ggplot2
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/