Right now, there's code in guide_axis() that allows putting the axes on the top and right, but it looks like all the actual calls to that function are hard-coded to use "left" and "bottom".
There should also be visual tests of the results.
I did start thinking about this - I think it should also be possible to change the position of the facet labels, and then you also need some way of specifying whether the axes should be inside or outside of the facet labels.
How should the sides be specified? It could be a theme element, something like this:
# Axes on all four sides
qplot(1:3, 1:3) + theme(axis.sides = "trbl")
Here is my previous ideas and implementations:
Now the internals of ggplot2 is largely changing, so it cannot wokr as is.
Hello, everyone. Any new idea/progress about this topic? Thank you so much for what you've done in this field!
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.
Just wondering: has anything changed in the internal architecture over the past two years which would facilitate the implementation of this feature now?
In principle it's not hard just very very fiddly
There's switch_axis_position from cowplot. Would that essentially be the heavy lifting?
I understand it's slightly different from allowing arbitrary axes positions, but perhaps it's not far from there.
This would be nice to have.
This has been sorted in the latest pre-release version: https://blog.rstudio.org/2016/09/30/ggplot2-2-2-0-coming-soon/
Great, thanks for announcing this!