Feature request: Arrangement of guide legend box
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 7k
- Forks
- 2.1k
- Avg merge
- 59m
- Merged PRs (30d)
- 2
Description
Currently, ggplot2 only supports controlling the arrangement of keys within a single legend box via the nrow/ncol arguments in guide_legend(). However, there's no built-in way to control the arrangement of multiple legend boxes themselves (e.g., laying the legen box out in rows or columns when multiple legends are present).
This is the issue in stackoverflow
multiple legends arrangement, to create legends like this:
Would it be feasible to add support for arranging multiple legend boxes, through a new theme() option?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing guide_legend() and theme(), focusing on how nrow/ncol arrange keys within one legend and how multiple legends are laid out. Done means providing a documented theme option that arranges multiple legend boxes in rows or columns, matching the requested examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100