Line segments in a facet_wrap disappear when maximizing the viewer using ggplotly()
オープン
まだ誰も着手していません。
ggplotly
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi,
I am trying to make a line chart with facets with free_y scale.
When I see the plot in the viewer everything looks fine:

But when I Zoom the Viewer and maximize the window some segments from the lines disappear.

The tooltip however is visible when I roll with the cursor over the missing line.
I have the same issue when I look it into Rmarkdown with fig.height=8, fig.width=11
ploty version - 4.7.1.9000
g5 <- ggplot(mobile_hor_top14, aes(x=month_p, y= freq, group=1,
text = paste('CPED: ', Month.Code..Main.CPED.Date.,
'<br>Count:', freq))) +
geom_line(alpha=0.8, colour="blue", size = 1)+
scale_x_continuous(breaks = seq(from=min(mobile_hor_top14$month_p), to=max(mobile_hor_top14$month_p), by=2), labels = gsub(" ", "",unique(mobile_hor_top14$Month.Code..Main.CPED.Date.))[seq(1,
diff(range(mobile_hor_top14$month_p))+1, 2)]) +
xlab("")+
ylab("") +
facet_wrap(~prod_name_add, ncol=2, scales="free_y") +
theme(legend.position="none") +
theme(axis.text.x = element_text(angle = 25, hjust = 1),
strip.text = element_text(size = 8, margin = margin(.1, 0, 0.1, 0, "cm")),
strip.placement = "outside")
ggplotly(g5, tooltip="text")
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
指定された寸法で、facet_wrap(scales="free_y")を使用した提供済みのggplotly()の例をViewerとR Markdownで再現し、通常表示と最大化表示を比較します。ソースファイルやテストは指定されていません。両方のレイアウトで線分が表示されたままになり、ツールチップが引き続き機能すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100