달력

122025  이전 다음

  • 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

ggplot2 barplot

Coding/R 2012. 9. 7. 12:55

data

Type mapping_rate

GSE 97.93504477

GPL 56.69988926

GDS 99.96324881

GSM 97.95128376

IDF 96.93251534

ADF 12.13235294

SDRF 96.92645445





code

library(reshape2)

library(ggplot2)

g = read.table("mr.txt", header=TRUE,sep='\t')

p = ggplot(g,aes(x=Type,y=mapping.rate ,fill=Type))+geom_bar()

p = p + xlab("Mapping Rate(%)") + ylab("Type of datas")

p = p + opts(title = "Mapping rateof each data format ", legend.title=theme_blank())

p


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

[plot] barplot with text  (0) 2017.06.13
line plot  (0) 2014.03.14
line plot  (0) 2014.01.28
ggplot histogram  (0) 2012.09.19
ggplot2(pie chart)  (0) 2012.09.07
Posted by jjbang
|