달력

52025  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

[plot] barplot with text

Coding/R 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")

'Coding > R' 카테고리의 다른 글

[plot]violin plot  (0) 2018.07.10
[R] igraph  (0) 2018.04.04
line plot  (0) 2014.03.14
line plot  (0) 2014.01.28
ggplot histogram  (0) 2012.09.19
Posted by jjbang
|