Skip to content

Horizontal legends #1842

Closed
Closed
@hadley

Description

@hadley

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")

Metadata

Metadata

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions