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
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")