Coding/R

[plot] barplot with text

jjbang 2017. 6. 13. 15:12

bp = barplot(table(dat[,1]),las=2,ylim = c(0,600),main="Number of experience per cell line in the L1000 data")

text(x = bp, y = table(dat[,1]), label = table(dat[,1]), pos = 3, cex = 0.8, col = "red")


bp = barplot(table(dat[,1]),las=2,ylim = c(0,600),main="Number of experience per cell line in the L1000 data")

text(x = bp, y = table(dat[,1]), label = table(dat[,1]), pos = 3, cex = 0.8, col = "red")