【发布时间】:2022-11-11 07:02:42
【问题描述】:
我正在复制一个人物,我非常接近回家。但我只是不知道如何在两个 geom_pointrange(s)() 之间添加空间。
谁能给我一个提示? 谢谢。
【问题讨论】:
-
没有看到你的 data.frame
df的结构有点棘手。也许您可以考虑将df和dfcontrol与第三个变量(例如type)组合成一个数据帧(例如使用rbind),其中df$type <- "exp"和dfcontrol$type <- "control"。然后在你的 ggplot 中使用group = typeaes和position_dodge()
标签: r ggplot2 aesthetics geom