Thanks!
This in combination with a small hack of ggplot2:::GeomLogticks (I
added a line
yticks <- with(yticks,yticks[value > base^scales$y.range[1] &
value< base^scales$y.range[2],])
to remove the superfluous ticks outside the range of y, which show up
when clipping is turned off)
seems to be doing what I need.
Ben Bolker
On 13-03-09 05:25 PM, baptiste auguie wrote:
> Here's a translation of my random mumbling from yesterday,
>
> library(ggplot2)
>
> p <- qplot(1:10, 1:10) +
> annotation_logticks(long=unit(-2, "mm"))
>
> g <- ggplot_gtable(ggplot_build(p))
>
> g$layout$clip[g$layout$name == "panel"] <- "off"
> grid.draw(g)
>
> Obvious downside, turning clipping off can also have undesirable effects...
>
> HTH,
>
> baptiste
>
> On 10 March 2013 11:13, Ben Bolker <
bbo...@gmail.com
> <mailto:
bbo...@gmail.com>> wrote:
>
> On 13-03-08 09:16 PM, baptiste auguie wrote:
> > otoh you can edit the gtable to turn the vIewport clipping off
> >
> > sent from my phone
>
> I'm sorry: this might be a good direction but it's a little too
> telegraphic for me.
>
> I can get as far as
>
> p3 <- ggplotGrob(p2)
> p4 <- p3$grobs[[which(p3$layout$name=="axis-l")]]
>
> str(p4)
>
> And I've looked at
>
>
https://github.com/hadley/ggplot2/wiki/Editing-raw-grid-objects-from-a-ggplot
>
> but I don't see where to edit ... the only bits of the structure called
> "clip" are either FALSE or "off" ...
>
> sorry -- more help ???
>
> Ben Bolker
> >
> >> On 9/03/2013 2:50 PM, "Ben Bolker" <
bbo...@gmail.com
> <mailto:
bbo...@gmail.com>
> <mailto:
ggp...@googlegroups.com> <mailto:
ggp...@googlegroups.com
> >> <mailto:
ggplot2%2Bunsu...@googlegroups.com
> <mailto:
ggplot2%252Buns...@googlegroups.com>>
> >> <mailto:
ggplot2%2Bunsu...@googlegroups.com
> <mailto:
ggplot2%252Buns...@googlegroups.com>>.