我是R Studio的新手,我只是想不出如何将Stacke Bar和普通Barplot结合起来...我知道问题已经得到了解决-但我还不能使用ggplot(现在对我来说太复杂了。.将尽我所能再次理解它。)
这是我的图形现在的样子: enter image description here
这是我对此图的编码:
par(font.axis=2)
par(mar=c(5,4,6,8))
barplot(as.matrix(data), beside = TRUE, ylab="number of cells / well",
ylim=c(0,350000),cex.axis=1,cex.lab=1.25,col=c("darkorchid4","gainsboro","darkolivegreen4"),
legend("topright",c("alive","dead","sawed cells / well"),
fill=c("darkorchid4","gainsboro","darkolivegreen4")))
我真正想要的是“活着的和死的”是一个堆积的条形图,而锯切的细胞是堆积的条形图旁边的正常条形图...甚至可能吗?
感谢您的帮助:)
这是我使用过的Excel工作表 enter image description here