Re: [R] ggplot2, geom_hline and facet_grid

2011-01-20 Thread Sandy Small
Subject: Re: [R] ggplot2, geom_hline and facet_grid Hi Sandy, It's difficult to know what's going wrong without a small reproducible example ([7]https://github.com/hadley/devtools/wiki/Reproducibility) - could you please provide one? You might also have better luck with an email

Re: [R] ggplot2, geom_hline and facet_grid

2011-01-20 Thread Hadley Wickham
...@gmail.com [[4]h.wick...@gmail.com] On Behalf Of Hadley     Wickham [[5]had...@rice.edu]     Sent: 19 January 2011 15:11     To: Small Sandy (NHS Greater Glasgow Clyde)     Cc: [6]r-help@r-project.org   Subject: Re: [R] ggplot2, geom_hline and facet_grid   Hi Sandy,   It's difficult to know

Re: [R] ggplot2, geom_hline and facet_grid

2011-01-19 Thread Sandy Small
Having upgraded to R version 2.12.1 I still have the same problem: The combination of facet_grid and geom_hline produce (for me) 4 panels of which two are empty of any data or lines (labelled 1 and 2). Removing either the facet_grid or the geom_hline gives me the result I would then expect. I

Re: [R] ggplot2, geom_hline and facet_grid

2011-01-19 Thread Hadley Wickham
Hi Sandy, It's difficult to know what's going wrong without a small reproducible example (https://github.com/hadley/devtools/wiki/Reproducibility) - could you please provide one? You might also have better luck with an email directly to the ggplot2 mailing list. Hadley On Wed, Jan 19, 2011 at

Re: [R] ggplot2, geom_hline and facet_grid

2011-01-19 Thread Small Sandy (NHS Greater Glasgow Clyde)
Of Hadley Wickham [had...@rice.edu] Sent: 19 January 2011 15:11 To: Small Sandy (NHS Greater Glasgow Clyde) Cc: r-help@r-project.org Subject: Re: [R] ggplot2, geom_hline and facet_grid Hi Sandy, It's difficult to know what's going wrong without a small reproducible example (https://github.com

Re: [R] ggplot2, geom_hline and facet_grid

2011-01-19 Thread Dennis Murphy
From: h.wick...@gmail.com [h.wick...@gmail.com] On Behalf Of Hadley Wickham [had...@rice.edu] Sent: 19 January 2011 15:11 To: Small Sandy (NHS Greater Glasgow Clyde) Cc: r-help@r-project.org Subject: Re: [R] ggplot2, geom_hline and facet_grid Hi Sandy, It's

[R] ggplot2, geom_hline and facet_grid

2011-01-18 Thread Small Sandy (NHS Greater Glasgow Clyde)
Hi I have a long data set on which I want to do Bland-Altman style plots for each rhythm type Using ggplot2, when I use geom_hline with facet_grid I get an extra set of empty panels. I can't get it to do it with the Diamonds data supplied with the package so here is a (much abbreviated)

Re: [R] ggplot2, geom_hline and facet_grid

2011-01-18 Thread Small Sandy (NHS Greater Glasgow Clyde)
] ggplot2, geom_hline and facet_grid Hi: The attached plot comes from the following code: g - ggplot(data = df, aes(x = (variable_time + fixed_time)/2, y = variable_time - fixed_time)) g + geom_point() + geom_hline(yintercept = 0) + facet_grid(ecd_rhythm ~ .) Is this what you were expecting