我尝试使用以下代码在每个箱图上创建一个带有矢量(stat_summary
)的posthoc标签的箱线图。
向量按照我希望我的标签在箱图中显示的方式排序,但CLD.gm2.lf.group
[1] " a" " a" " a" " a " " ab" " b" " ab" " b" " a " " a" " a" " a" " a" " a"
[15] " a" " a" " a" " a" " a" " a" " a"
似乎混淆了图上标签的顺序。
例如,我的矢量,按照我想要的方式排序:
ggplot(Total.Grad, aes(x, y, fill = treatment)) +
geom_boxplot(aes(fill = treatment)) +
theme_light() +
ylim(5,28) +
scale_fill_brewer(palette = "YlGnBu") +
stat_summary(geom = 'text',
size = 3,
label = CLD.gm2.lf.group,
fun.y = max,
vjust = -1,
position = position_dodge(width = 0.9))
以下代码的箱形图:
<VirtualHost *:443>
ServerName myapp.org
ProxyRequests Off
ProxyPreserveHost On
# proxy pass /myapp to the internal:6543/myapp
ProxyPass /myapp http://172.31.15.111:6543/myapp/
ProxyPassReverse /myapp http://172.31.15.111:6543/myapp/
<Proxy *>
allow from all
</Proxy>
ProxyTimeout 1200
</VirtualHost>
正如您所看到的,它始终翻转“最小”。和#&#39;广泛的&#39;。它不是按字母顺序排列的。为什么它会以一种特定的方式混淆一个向量,而不是经常在整个情节中粘贴它?