Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Double coordinate transformations for geoms that draw with other geoms #2149
Comments
karawoo
added bug coord
labels
Jun 13, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
has2k1 commentedJun 2, 2017
When a
geomqueries the coordinate range and uses the result to create data that is then plotted by anothergeom, there is potentially a double transformation. i.e.coord.range()yields results in coordinate space and if followed bycoord.transform(), the data may get transformed two times. Affectscoordsthat transform the limits incoord$setup_panel_paramsand also do transforms incoord$transform. This includescoord_transandcoord_sf.Affected geoms include
geom_abline,geom_hlineandgeom_hline.reprex
The red line (at x=3) should be top to bottom.