Skip to content

Horizontal legends #1842

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

Closed
hadley opened this issue Oct 8, 2016 · 3 comments
Closed

Horizontal legends #1842

hadley opened this issue Oct 8, 2016 · 3 comments
Assignees
Labels
bug an unexpected problem or unintended behavior
Milestone

Comments

@hadley
Copy link
Member

hadley commented Oct 8, 2016

Didn't this use to lay out the legends horizontally?

ggplot(mtcars, aes(wt, mpg)) +
  geom_point(aes(colour = factor(cyl), shape = factor(vs))) +
  theme(legend.position = "bottom")

i.e. the same as:

ggplot(mtcars, aes(wt, mpg)) +
  geom_point(aes(colour = factor(cyl), shape = factor(vs))) +
  theme(legend.position = "bottom", legend.box = "horizontal")
@hadley hadley added the bug an unexpected problem or unintended behavior label Oct 8, 2016
@hadley hadley added this to the v2.2.0 milestone Oct 8, 2016
@thomasp85
Copy link
Member

I don't think so. Hasn't it always been necessary to be explicit ?

@hadley
Copy link
Member Author

hadley commented Oct 8, 2016

But there's space to the left of the second legend - that doesn't seem right.

@hadley hadley self-assigned this Oct 8, 2016
@hadley
Copy link
Member Author

hadley commented Oct 8, 2016

In any case, I think it should be changed, so I'll do it

@hadley hadley closed this as completed in 5b70f2a Oct 9, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants