Skip to content

support for sec_axis #1051

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bowerth opened this issue Jun 19, 2017 · 6 comments
Open

support for sec_axis #1051

bowerth opened this issue Jun 19, 2017 · 6 comments
Labels

Comments

@bowerth
Copy link

bowerth commented Jun 19, 2017

Is there a chance that the sec.axis argument of y-scales will be supported? Unfortunately, the right-hand y-axis does not appear in the ggplotly() output

p <- ggplot(mtcars, aes(cyl, mpg)) +
  geom_point()
## Create a simple secondary axis
p2 <- p + scale_y_continuous(sec.axis = sec_axis(~.+10))
ggplotly(p2)
@aminadibi
Copy link

Same problem here. Would've been very useful to have that.

@adrianoesch
Copy link

I'm happy to give it a shot if more experienced people can point me in the right direction.

@cpsievert
Copy link
Collaborator

There's a work in progress here #813

@adrianoesch
Copy link

though #813 is going further than this and as far as I can see it overlaps with a workstream your doing at #929.

@adrianoesch
Copy link

I made an initial attempt here. Any ideas why the 2nd axis shows up when named yaxis but not when yaxis2?

@yinghawl
Copy link

Has this issue been addressed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants