Re: How to rotate facet labels to read horizontal?

6,873 views
Skip to first unread message

Ista Zahn

unread,
Feb 8, 2013, 7:58:04 PM2/8/13
to AA, ggp...@googlegroups.com
Hi,

On Fri, Feb 8, 2013 at 3:31 PM, AA <andrew....@gmail.com> wrote:
> From Wickham's book pp123-124
> I've tried the strip.text.y but the y-axis text for each facet still is
> printed vertical and I would like it printed horizontally
> facet_grid(problem ~ ., scales = "fixed", space = "fixed") +
> theme(strip.text.y = element_text())

You have the right idea, but you don't actually set the angle. Don't
you just need

theme(strip.text.y = element_text(angle=0))

?

Best,
Ista

>
> --
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:
> https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ggplot2" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ggplot2+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Andrew Albright

unread,
Feb 8, 2013, 8:59:43 PM2/8/13
to Ista Zahn, ggp...@googlegroups.com
Yes, adding the angle=0 works perfectly. Thanks!

Sincerely,
Andrew
Reply all
Reply to author
Forward
0 new messages