geom_hline and facet grid with categorical yaxis

48 views
Skip to first unread message

Tyler Rinker

unread,
May 14, 2013, 9:14:16 PM5/14/13
to ggplot
I have the need to add an geom_hline to multiple facets of a facet_grid plot with a categorical (factor) y axis.  I asked how to do this here: 

I received an answer that works but it feels hacky. I am wondering if the need to add a numeric version in the geom_hline data frame is a bug or intended behavior.  Is there maybe a better approach I'm not seeing?

Tyler Rinker

PS I will post anything I learn back to the stackoverflow question.

Faheem Mitha

unread,
May 15, 2013, 3:59:08 AM5/15/13
to ggp...@googlegroups.com
On Tue, 14 May 2013 21:14:16 -0400, Tyler Rinker <tyler_...@hotmail.com> wrote:

> I have the need to add an geom_hline to multiple facets of a
> facet_grid plot with a categorical (factor) y axis.  I asked how to
> do this here: 

Your link is missing.

Regards, Faheem

Tyler Rinker

unread,
May 15, 2013, 10:21:22 AM5/15/13
to Faheem Mitha, ggplot
<a href="http://stackoverflow.com/questions/16551388/horizontal-line-y-axis-as-factor-ggplot2" class="newlyinsertedlink">http&#58;&#47;&#47;stackoverflow.com&#47;questions&#47;16551388&#47;horizontal-line-y-axis-as-factor-ggplot2</a>

----------------------------------------
> To: ggp...@googlegroups.com
> From: fah...@faheem.info
> Subject: Re: geom_hline and facet grid with categorical yaxis
> Date: Wed, 15 May 2013 07:59:08 +0000

> --
> --
> 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.
>
>

Reply all
Reply to author
Forward
0 new messages