Facet Ribbon Size

15 views
Skip to first unread message

Nick S

unread,
Jul 6, 2010, 8:58:23 PM7/6/10
to ggplot2
Is there a way to control the width of the bars/ribbons placed at the
top of each facet when using facet_wrap()?

I'd like to shrink the width if possible to lend more room to the
graphs.

Thanks in advance for any advice.

Hadley Wickham

unread,
Jul 7, 2010, 1:37:47 PM7/7/10
to Nick S, ggplot2
Hi Nick,

Do you mean the height? The width is always the same as the panel width.

Hadley

> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>

--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/

Nick S

unread,
Jul 8, 2010, 12:14:21 PM7/8/10
to ggplot2
Yes..I would like to reduce the height of the ribbons/bars.

Hadley Wickham

unread,
Jul 8, 2010, 12:19:13 PM7/8/10
to Nick S, ggplot2
Well in that case, reduce the size of the font:

... + opts(strip.text = theme_text(size = 8)

Hadley

Reply all
Reply to author
Forward
0 new messages