geom_step truncating line too early before null value

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

還沒有人認領這個 Issue。

評估

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

研究方向

從 geom_step 的實作及其對 null 或 NA 值的處理著手,使用 issue 中的 R 範例重現差異。將 Plotly 的輸出與一般 ggplot2 進行比較,並確認階梯線仍然延伸穿過 NA 之前的值,而不是過早結束。

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

描述

bug ggplotly

It seems that geom_step is truncating the line too early when it encounters a null value. Rather than continue the line until the null value, it stops at the prior value:

Example:
ggplot(data.frame(x=1:5, y=c(1,2,NA,1,1)), aes(x,y)) + geom_step()

Plain ggplot2:
ggplot

Plotly:
plotly

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

貢獻指南

開啟貢獻指南

從這裡開始

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

plotly/plotly.R 的其他 Issue

查看 plotly/plotly.R 的全部 Issue

相似的 Issue

更多 R Issue

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

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