Allow axes on top and right #619

Closed
wch opened this Issue Jul 11, 2012 · 12 comments

Projects

None yet

8 participants

@wch
Collaborator
wch commented Jul 11, 2012

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.

@hadley
Member
hadley commented Aug 1, 2012

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.

@wch
Collaborator
wch commented Aug 26, 2012

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")
@kohske
Collaborator
kohske commented Aug 26, 2012

Here is my previous ideas and implementations:
https://groups.google.com/forum/?fromgroups=#!topic/ggplot2-dev/JkJU5CLBkQw

Now the internals of ggplot2 is largely changing, so it cannot wokr as is.

@catbear
catbear commented Mar 11, 2013

Hello, everyone. Any new idea/progress about this topic? Thank you so much for what you've done in this field!

@hadley
Member
hadley commented Feb 24, 2014

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.

@hadley hadley closed this Feb 24, 2014
@mavam
mavam commented Feb 7, 2016

Just wondering: has anything changed in the internal architecture over the past two years which would facilitate the implementation of this feature now?

@hadley
Member
hadley commented Feb 7, 2016

In principle it's not hard just very very fiddly

@mavam
mavam commented Feb 7, 2016

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.

@talgalili
Contributor

+1
This would be nice to have.

@cmohamma

+1

@hobrien
hobrien commented Nov 3, 2016

This has been sorted in the latest pre-release version: https://blog.rstudio.org/2016/09/30/ggplot2-2-2-0-coming-soon/

@mavam
mavam commented Nov 3, 2016

Great, thanks for announcing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment