Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coord_trans() causes geom_hline() to draw incomplete lines #2812

Closed
mafed opened this issue Aug 8, 2018 · 3 comments
Closed

coord_trans() causes geom_hline() to draw incomplete lines #2812

mafed opened this issue Aug 8, 2018 · 3 comments

Comments

@mafed
Copy link

@mafed mafed commented Aug 8, 2018

geom_hline draws incomplete lines when used together with coord_trans, regardless of their respective order of addition.

mydf <- data.frame(x = 0L:20,
                   y = -10:10)
ggplot(data = mydf, aes(x, y)) + 
  geom_point() + 
  coord_trans(x = "log1p") +
  geom_hline(yintercept = c(-10, 10))

image

@mafed mafed changed the title `coord_trans` causes `geom_hline` to draw incomplete lines coord_trans causes geom_hline to draw incomplete lines Aug 8, 2018
@mafed mafed changed the title coord_trans causes geom_hline to draw incomplete lines coord_trans() causes geom_hline() to draw incomplete lines Aug 8, 2018
@clauswilke
Copy link
Member

@clauswilke clauswilke commented Aug 8, 2018

Duplicate of #2149?

clauswilke added a commit to clauswilke/ggplot2 that referenced this issue Aug 10, 2018
@hadley hadley closed this Aug 10, 2018
clauswilke added a commit to clauswilke/ggplot2 that referenced this issue Aug 10, 2018
clauswilke added a commit to clauswilke/ggplot2 that referenced this issue Aug 11, 2018
@mafed
Copy link
Author

@mafed mafed commented Aug 13, 2018

Thanks @clauswilke, look forward to your fix.
I noticed a duplicate issue but opened it anyway because the problem is still not fixed.

clauswilke added a commit to clauswilke/ggplot2 that referenced this issue Aug 17, 2018
clauswilke added a commit to clauswilke/ggplot2 that referenced this issue Aug 22, 2018
clauswilke added a commit to clauswilke/ggplot2 that referenced this issue Aug 23, 2018
clauswilke added a commit that referenced this issue Aug 23, 2018
* rename range() function of coord to backtransform_range()

* update news. closes #2149, #2812

* add range backtransformation function. closes #2820.

* fix typo in coord code

* add backtransform_range() to coord_map

* update summarise_layout to use backtransform_range() instead of range().

* Update coord documentation

* undo API cleanup

* update documentation

* rebase

* fix remaining issue from rebase
@lock
Copy link

@lock lock bot commented Feb 9, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Feb 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants