如何增加 ggrorplot 中点之间的距离

问题描述 投票:0回答:1

我怎样才能增加这些点之间的大小,因为它们现在重叠并且您看不到某些组?

数据子集:

                    Species Transect Abundance Habitat
1 Camponotus novogradiensis T1       0         Torre
2 Nylanderia steinheili     T1       0         Torre
3 Paratrechina longicornis  T1       1         Torre
4 Azteca ACG6526            T1       3         Torre
5 Tapinoma ramulorum        T1       0         Torre
6 Dolichoderus curvilobus   T1       5         Torre
library(ggpubr)

ggerrorplot(data.2, x = "Species", y = "Abundance",
color = "Habitat",
error.plot = "pointrange",
orientation = "horizontal",
position = position_dodge(width=0))

r ggplot2 ggpubr
1个回答
0
投票

position_dodge()
中的参数更改为大于 0 的某个值,可能为
width = 0.5

© www.soinside.com 2019 - 2024. All rights reserved.