plotly / plotly/plotly.R

ggplotly issue with geom_text and angle aesthetic

未關閉
#709 5 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

ggplotly plotly.js
主要語言
R
星號
2.7k
分支
641
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

先執行在 mtcars 上使用 geom_text 的已回報 ggplotly() 範例,並將其與預期的旋轉標籤進行比較。追蹤 geom_text 如何處理 angle aesthetic,然後確認標籤能在 45 度角下無錯誤地算繪。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
r
領域
data-visualization
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。