You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Changing position value in scale_ interacts strangely with coord_trans() #4551
Applying any transformation using coord_trans() modifies what the argument position does in scale_:
(notice that only the title of the axis is sent to the top and no longer the labels when coord_trans() is used)
library(ggplot2)
packageVersion("ggplot2") ## note: current devel does also behave in the same way#> [1] '3.3.5'
ggplot(data=iris) +
geom_point(aes(y=Sepal.Length, x=Species)) +
scale_x_discrete(position="top")
@paleolimbot all of these issues seems to be related to the fact that only coord_cartesian()was moved over to the new axis guide generation pipeline... are you up for moving the remaining coords?
Activity
teunbrand commentedon Jul 8, 2021
This might be related to #3959, but because "Species" is on top it would suggests that facets are aware of the position but coords might not be.
thomasp85 commentedon Oct 28, 2021
Potentially also related to #4650
thomasp85 commentedon Nov 17, 2021
@paleolimbot all of these issues seems to be related to the fact that only
coord_cartesian()was moved over to the new axis guide generation pipeline... are you up for moving the remaining coords?yutannihilation commentedon Jul 7, 2022
This will be fixed by #3972.
Created on 2022-07-08 by the reprex package (v2.0.1)