尝试按位置和平均推荐链接创建堆积的条形图
ggplot(data=data, mapping=aes(x=location)) +
geom_bar(mapping=aes(y=average_utiliz),
stat="identity", position="identity",
fill=qicblue, color=qicblue) +
geom_bar(mapping=aes(y=average_referrals),
stat="identity", position="identity",
fill = NA, color=qicorange) +
scale_x_discrete(limits=sitestoplot2) +
xlab(NULL) +
ylab("Avg. referrals/Utilization") +
theme_bw() +
theme(axis.ticks.x=element_blank(),
panel.grid=element_blank())
类似于下图,因为我希望包括总体内容:
但是我希望它更像这样: