Skip to content

Support ggplot2's theme(legend.direction = "horizontal") #684

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
this-username-is-taken opened this issue Aug 15, 2016 · 3 comments
Open
Labels

Comments

@this-username-is-taken
Copy link

This feature is now supported by plotly.js:

plotly/plotly.js#535

@cpsievert
Copy link
Collaborator

It is supported:

plot_ly(mtcars, x = ~mpg, y = ~disp, color = ~factor(vs)) %>% 
  layout(legend = list(orientation = "h"))

We don't, however, have support for ggplot2::theme(legend.direction = "horizontal") yet. Changing the title to reflect this.

@cpsievert cpsievert changed the title Support horizontal legend Support ggplot2's theme(legend.direction = "horizontal") Aug 15, 2016
@this-username-is-taken
Copy link
Author

Thanks Carson!

@abalter
Copy link

abalter commented Sep 12, 2016

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

3 participants