[Feature request] Align legend with the start and end of the axis

Open
#17 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
r

Research direction

No files, tests, or entry points are named in the issue, so start by locating the legend and axis-layout code in the R package. Define how legend alignment should work for individual plots and shared legends, then add coverage showing the legend edges align with the axis start and end.

Written by the indexing model from the issue text.

Description

I wonder if it would be possible to implement a feature that make it possible to align the legend with the start and end of the axis. For example, in the figure below the legend extends along the Y-axis, perfectly aligned with the start and end of the axis. This new feature can be extended to the sharing of a single legend by multiple plots.

image
(Image taken from https://uk.mathworks.com/help/examples/graphics/win64/CreatingColorbarsFullEmbedExample_01.png)

Dominant language
R
Stars
131
Forks
17
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from YuLab-SMU/aplot

All issues in YuLab-SMU/aplot

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.