Skip to content
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

Bug 7084 - text(x, y, labels) - recycling problems #78

Open
hturner opened this issue Nov 8, 2024 · 3 comments
Open

Bug 7084 - text(x, y, labels) - recycling problems #78

hturner opened this issue Nov 8, 2024 · 3 comments
Assignees
Labels
Graphics Issues related to graphics LatinR 2024 needs patch Implement the agreed fix and prepare a patch for review R Issue should require knowledge of R only

Comments

@hturner
Copy link
Member

hturner commented Nov 8, 2024

Currently text() recycles coordinate pairs when there are more labels than points to plot them at. For example:

plot(1:7); text(1:2, 2:4, LETTERS[1:4])

results in
text_recycling

where "D" is plotted on top of "A" because four labels have been provided (A, B, C, D) but only 3 points ((1, 2), (2, 3), and (1, 4) - the x coordinates are recycled to match the length of y).

This task is to modify text() to drop extra labels with a warning as proposed at the end of Bug 7084.

@hturner hturner added needs patch Implement the agreed fix and prepare a patch for review Graphics Issues related to graphics LatinR 2024 R Issue should require knowledge of R only labels Nov 8, 2024
@hturner hturner changed the title Bug 7084 - text(x, y, labels) - recycling problems and RFC Bug 7084 - text(x, y, labels) - recycling problems Nov 8, 2024
@EllaKaye
Copy link

EllaKaye commented Nov 8, 2024

I'd be happy to take a look at this at the next opportunity, if it doesn't get resolved at LatinR.

@pmur002 pmur002 self-assigned this Nov 18, 2024
@rohan-mate-28
Copy link

assign to me i'm intreasting to solve it

@hturner
Copy link
Member Author

hturner commented Jan 14, 2025

@rohan-mate-28 I have sent you an invite via GitHub to join this repo. If you accept the invite, I can assign this issue to you on GitHub. Meanwhile, feel free to start work on this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graphics Issues related to graphics LatinR 2024 needs patch Implement the agreed fix and prepare a patch for review R Issue should require knowledge of R only
Projects
None yet
Development

No branches or pull requests

4 participants