我希望将四个地块放在同一个地块上。我可以轻松地在网格中排列每个图,但我希望能够在同一个图中看到它们。
基本上我希望它看起来有点像这张图 multiple bars for each item and multiple items
我想要的图的代码是
ggplot(SexInfo, aes(x = C_Sex, y = C_SexInfo_7)) +
geom_bar(stat= "summary", fun = mean, fill = c("cadetblue", "darkgreen"))+
stat_summary(fun.data = mean_se, geom = "errorbar", width = .4)+
ylim(0,6)
我对其他 3 个图有相同的代码。我现在希望它们都绘制在同一个图上,而不是将四个图放在一个网格中。