作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我生成了 2 个 ggplot 图形,现在我想将它们添加到同一个图形中,为此我只需添加 +
。所以我有 2 个图:(1 个 ggtree 和 1 个热图)
我正在尝试将它们添加到同一个图中:
ggplot<- gg_tr + gg_heat + plot_annotation(tag_levels="A")
但后来我收到以下问题消息:
Error : Can't add `gg_heat` to a ggplot object.
Run `rlang::last_error()` to see where the error occurred.
最佳答案
library(patchwork)
gg_tr + gg_heat
关于r - ggplot2 : Can't add ` ` to a ggplot object,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62599918/
我是一名优秀的程序员,十分优秀!