Description
在多处使用了ggplot2中已弃用的 size 参数:
R/GuitarPlot.R:
- 第112行:
geom_segment(..., size=1, ...)
- 第154行:
geom_line(..., size = 1)
- 第157-158行:
geom_line(..., size = 0.3) (两处)
Impact
- 在ggplot2 >= 3.4.0 中会产生deprecation警告
- 未来版本可能完全移除支持
Suggested Fix
将 size 替换为 linewidth:
# 旧代码
geom_segment(..., size=1, ...)
geom_line(..., size = 1)
# 新代码
geom_segment(..., linewidth=1, ...)
geom_line(..., linewidth = 1)
File
R/GuitarPlot.R lines 112, 154, 157, 158
Description
在多处使用了ggplot2中已弃用的
size参数:R/GuitarPlot.R:geom_segment(..., size=1, ...)geom_line(..., size = 1)geom_line(..., size = 0.3)(两处)Impact
Suggested Fix
将
size替换为linewidth:File
R/GuitarPlot.Rlines 112, 154, 157, 158