Zoom all facets at the same time
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
There seems to be a discrepancy between plotly for R and for python in how it handles zooming across facets.
To take my examples directly from the documentation: https://plotly.com/ggplot2/facet-plots/ vs https://plotly.com/python/facet-plots/
In the python version, if I select a region to zoom in on, the same zoom is applied to all facets, regardless of position.
In the r version, if I zoom on one facet, the 'x' zoom is applied to facets in the same column, and the 'y' zoom is applied to facets in the same row - but other facets are unaffected.
I would like to replicate the python behaviour in r. Any clues for how to do this?
Reprex: Compare zoom behaviour between R and python
library(reshape2)
library(plotly)
p <- ggplot(tips, aes(x=total_bill)) + geom_histogram(binwidth=2,colour="white")
# Histogram of total_bill, divided by sex and smoker
p <- p + facet_grid(sex ~ smoker)
ggplotly(p)
import plotly.express as px
df = px.data.gapminder()
fig = px.scatter(df, x='gdpPercap', y='lifeExp', color='continent', size='pop',
facet_col='year', facet_col_wrap=4)
fig.show()
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue の R reprex を実行し、その facet のズーム動作を、リンクされている Python の facet 例と比較します。issue ではリポジトリのファイルやテストは指定されていません。完了の条件は、1 つの facet で領域を選択すると、すべての facet に同じ x および y のズームが適用されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100