subplot() does not include titles from ggtitle()
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 45/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- r
研究方向
先執行提供的 R 範例,使用 ggplot2 和 plotly,比較 ggplotly(gg1) 與 ggplotly(gg2) 和 subplot() 的合併輸出。檢查 subplot() 和 ggplotly() 入口點,以追蹤 ggtitle() 文字的處理方式。當合併視覺化中的每個 subplot 都顯示其對應的標題時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
The following code does not include the text from ggtitle() in each subplot:
library(ggplot2)
library(plotly)
gg1 <- ggplot(data=iris) +
geom_point(aes(x=Sepal.Length, y=Petal.Length)) +
ggtitle("PLot 1")
gg2 <- ggplot(data=iris) +
geom_point(aes(x=Sepal.Length, y=Petal.Width)) +
ggtitle("PLot 2")
subplot(ggplotly(gg1), ggplotly(gg2), nrows=2)
sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Pop!_OS 21.04
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=es_ES.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=es_ES.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=es_ES.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] plotly_4.10.1.9000 ggplot2_3.4.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.9 plyr_1.8.6 pillar_1.8.1 compiler_4.0.4 tools_4.0.4 digest_0.6.30 viridisLite_0.4.1 jsonlite_1.8.4 evaluate_0.17
[10] lifecycle_1.0.3 tibble_3.1.8 gtable_0.3.1 pkgconfig_2.0.3 rlang_1.0.6 cli_3.4.1 DBI_1.1.1 rstudioapi_0.13 crosstalk_1.2.0
[19] yaml_2.3.6 xfun_0.35 fastmap_1.1.0 withr_2.5.0 dplyr_1.0.10 httr_1.4.2 knitr_1.40 generics_0.1.3 vctrs_0.5.1
[28] htmlwidgets_1.5.4 grid_4.0.4 tidyselect_1.2.0 glue_1.6.2 data.table_1.14.2 R6_2.5.1 fansi_1.0.3 rmarkdown_2.14 pander_0.6.5
[37] tidyr_1.1.3 purrr_0.3.5 magrittr_2.0.3 scales_1.2.1 htmltools_0.5.3 assertthat_0.2.1 colorspace_2.0-3 labeling_0.4.2 utf8_1.2.2
[46] lazyeval_0.2.2 munsell_0.5.0
I get:

- 主要語言
- R
- 星號
- 2.7k
- 分支
- 640
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/plotly.R 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 62/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 3/5 1-2 天 新手友好度 68/100
-
難度 3/5 1-2 天 新手友好度 72/100
-
save_image Error未關閉
難度 3/5 1-2 天 新手友好度 52/100
相似的 Issue
-
[work-item] adam-adae-serious-events: pin missing-AESER filter semantics可能已有人在做 @muse-yamaa-bot 今天認領。 未關閉work-item
難度 1/5 1-3 小時 新手友好度 90/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 88/100
rfordatascience/tidytuesday#1089 ·
-
Component: R Type: bug
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
nflverse/nflverse-rosters#102 ·
-
bug priority: should
難度 2/5 1-3 小時 新手友好度 68/100
The-Strategy-Unit/nhp_outputs#477 ·