ggplotly not working when plotting circular ggtree
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hello,
When I try to plot through ggplotly a graph generated through ggree with circular layout it results in a error.
Example code and error:
library(MicrobiotaProcess)
library(ggtree)
data(kostic2012crc)
taxa <- tax_table(kostic2012crc)
tree <- as.treedata(taxa, include.rownames=TRUE)
ggtree(tree, layout="circular", size=0.2) +
geom_tiplab(size=1) ->p
plotly::ggplotly(p)
ERROR:
Error in rng[[xy]]$get_labels() : attempt to apply non-function
In addition: Warning messages:
1: In min(z[["x"]]$dimension %()% z$x.range %||% z$x_range) :
no non-missing arguments to min; returning Inf
2: In max(z[["x"]]$dimension %()% z$x.range %||% z$x_range) :
no non-missing arguments to max; returning -Inf
3: In min(z[["y"]]$dimension %()% z$y.range %||% z$y_range) :
no non-missing arguments to min; returning Inf
4: In max(z[["y"]]$dimension %()% z$y.range %||% z$y_range) :
no non-missing arguments to max; returning -Inf
5: In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomTextGGtree() has yet to be implemented in plotly.
If you'd like to see this geom implemented,
Please open an issue with your example code at
https://github.com/ropensci/plotly/issues
6: In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomTextGGtree() has yet to be implemented in plotly.
If you'd like to see this geom implemented,
Please open an issue with your example code at
https://github.com/ropensci/plotly/issues
When I try with ggtree(tree, layout="dendrogram", size=0.2) +
geom_tiplab(size=1) ->p
plotly::ggplotly(p)
It works.
It seems that it does not like the circular format.
Any tips?
Thanks
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、plotly::ggplotly()、ggtree(tree, layout="circular")、geom_tiplab() を使って報告された例を再現します。動作するデンドログラムレイアウトと比較し、geom_GeomTextGGtree の警告を調査します。ラベルを保持したまま、円形プロットが報告されたエラーや警告なしで変換できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100