plotly / plotly/plotly.R

ggplotly issue with geom_text and angle aesthetic

Open
#709 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ggplotly plotly.js
Dominant language
R
Stars
2.7k
Forks
641
PR merge metrics
No merged PRs in 30d

Description

The "angle" aesthetic of (ggplotly) geom_text is not working (R 3.3.1 and plotly 3.6.0 4.5.2).

Executing the following line:

ggplotly( ggplot(data=mtcars) + geom_text(aes(wt, mpg, label=rownames(mtcars)), angle=45) )

it returns no error but the labels are not rotated.
result:
result

expected result:
expected

Contributor guide

Open the contributing guide

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.

Research direction

Start by running the reported ggplotly() example with geom_text on mtcars and compare it with the expected rotated labels. Trace how the angle aesthetic is handled for geom_text, then verify that the labels render at 45 degrees without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.