plotly / plotly/plotly.R

xaxis/yaxis in layout of subplots does only apply to first subplot instead of all subplots

オープン
#2,137 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
R
スター
2.7k
フォーク
641
PR マージ指標
30日以内にマージされた PR はありません

説明

In https://plotly.com/r/subplots/#customizing-subplot-axes it is described, that xaxis/yaxis apply to all axis in the subplots.

After a figure with subplots is created using the subplot function, its axis properties (title, font, range, grid style, etc.) can be customized using the xaxis and yaxis graph object figure methods. By default, these methods apply to all of the x axes or y axes in the figure. The row and col arguments can be used to control which axes are targeted by the update.

As it can be seen at the example, it only aplies to the first subplot. A shorter example with the use of ggplotly is provided below. There the layout only works for the first row and first column.

ggplot(data = mtcars, aes(x = hp, y = mpg, color = am)) +
  geom_point() +
  facet_grid(cyl ~ gear, labeller = label_both) +
  theme_light()
ggplotly() %>% layout(xaxis = list(tickmode = "auto"), yaxis = list(tickmode = "auto"))

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

文書化されているsubplot軸の動作から始め、提供されているggplot2、facet_grid、ggplotly()、layout()の例を使って問題を再現します。xaxisとyaxisのlayout更新がどのように適用されるかを追跡し、その更新が最初の行と列だけでなく、すべてのsubplot軸に影響することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
r
領域
data-visualization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。