add add_vrect and add_hrect to plotly R library
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to add vertical lines and rectangles that span an entire plot axis. The created polygon or line should not affect the autoscale functionality of plotly. This functionality is implemented in the python library using the functions add_hrect and add_vrect as exemplified here: https://plotly.com/python/horizontal-vertical-shapes/
In the python tab section 'Adding Text Annotations' the autoscaling functionality is maintained when toggling on/off legend items. This is not the case for the R-version of the script.
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 the R library's existing polygon, line, and legend-toggle behavior, then compare it with the Python horizontal-vertical-shapes example linked in the issue. Done means add_vrect and add_hrect are available in the R library, shapes spanning the plot axis do not affect autoscaling, and autoscaling remains correct when legend items are toggled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, r
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100