簡體   English   中英

錯誤: 。 將 geom 轉換為 grob 時出現問題。 ℹ 第一層出現錯誤

[英]Error: ! Problem while converting geom to grob. ℹ Error occurred in the 1st layer

我正在運行此鏈接中的示例。 重新安裝 ggiraph 后,之前運行的相同代碼返回此錯誤

Error:
! Problem while converting geom to grob.
ℹ Error occurred in the 1st layer.
Caused by error in `check.length()`:
! 'gpar' element 'lwd' must not be length 0
Run `rlang::last_error()` to see where the error occurred.

有什么建議嗎?

您使用的是哪個版本的 ggplot2? 我遇到了來自 ggforce 的相同錯誤。 最后,我得到了 R 4.2.2、ggplot2 3.4.0、ggiraph 0.8.4 和 ggforce 0.4.1 的所有功能。

在 ggplot 中使用 geom_freqpoly 時,我遇到了類似的問題。 xlim() 似乎有問題。 當我刪除 xlim() 時,一切正常。 重新啟動 RStudio 解決了我的問題。 R 版本 4.2.2 ggplot2_3.4.0

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM