ggplotly issue with geom_text and angle aesthetic
Open
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:

expected result:

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 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