Skip to content

ggplot2, geom_hline and facet_grid

1 message · Small Sandy (NHS Greater Glasgow & Clyde)

#
Thanks Dennis

Yes the plot you sent was what I was expecting. Unfortunately I do not get the same thing using the same commands whn I try it.
I notice that I am using a slightly earlier version of R than you. Given that it worked on the Diamonds data I doubt that this the problem but I will upgrade this evening and see if it makes any difference.

Here is my session info:
R version 2.11.1 (2010-05-31)
i386-redhat-linux-gnu

locale:
 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8
 [5] LC_MONETARY=C              LC_MESSAGES=en_GB.UTF-8
 [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  grid      methods
[8] base

other attached packages:
[1] ggplot2_0.8.9 reshape_0.8.3 plyr_1.4      proto_0.3-8

Sandy Small
Clinical Physicist
NHS Forth Valley
and
NHS Greater Glasgow and Clyde