plotly.R
plotly.R copied to clipboard
support for sec_axis
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)
Same problem here. Would've been very useful to have that.
I'm happy to give it a shot if more experienced people can point me in the right direction.
There's a work in progress here https://github.com/ropensci/plotly/pull/813
though #813 is going further than this and as far as I can see it overlaps with a workstream your doing at #929.
I made an initial attempt here. Any ideas why the 2nd axis shows up when named yaxis
but not when yaxis2
?
Has this issue been addressed?