bug when combining geom_hline() and coord_trans() #716

Closed
ThierryO opened this Issue Nov 6, 2012 · 1 comment

Projects

None yet

2 participants

@ThierryO
ThierryO commented Nov 6, 2012

the first two plots work, the last one does not.

dataset <- data.frame(A = runif(100, 1, 10), B = rnorm(100))
ggplot(dataset, aes(x = A, y = B)) + geom_point() + coord_trans(x = "log10")
ggplot(dataset, aes(x = A, y = B)) + geom_point() + geom_hline(yintercept = 1)
ggplot(dataset, aes(x = A, y = B)) + geom_point() + coord_trans(x = "log10") + geom_hline(yintercept = 1)

sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Dutch_Belgium.1252 LC_CTYPE=Dutch_Belgium.1252
[3] LC_MONETARY=Dutch_Belgium.1252 LC_NUMERIC=C
[5] LC_TIME=Dutch_Belgium.1252

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

other attached packages:
[1] plyr_1.7.1 Epi_1.1.38 scales_0.2.2 ggplot2_0.9.2.1

loaded via a namespace (and not attached):
[1] colorspace_1.2-1 dichromat_1.2-4 digest_0.5.2 grid_2.15.2
[5] gtable_0.1.1 labeling_0.2 MASS_7.3-22 memoise_0.1
[9] munsell_0.4 proto_0.3-9.2 RColorBrewer_1.0-5 reshape2_1.2.1
[13] stringr_0.6.1 tools_2.15.2

@hadley
Collaborator
hadley commented Feb 24, 2014

This sounds like a great feature, but unfortunately we don't currently have the development bandwidth to support it. If you'd like to submit a pull request that implements this feature, please follow the instructions in the development vignette.

@hadley hadley closed this Feb 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment