Mercurial > repos > yufei-luo > s_mart
view SMART/Java/Python/tmpFile26845.R @ 25:7809e72960fe
Deleted selected files
author | m-zytnicki |
---|---|
date | Mon, 29 Apr 2013 03:29:14 -0400 |
parents | 94ab73e8a190 |
children |
line wrap: on
line source
library(extrafont) loadfonts() library(ggplot2) data <- read.table("tmpFile26845.dat", header = T) data$Sample <- factor(data$Sample, levels=c("Col")) png("test.png", width = 800, height = 300) ggplot(data, aes(x = Pos/1000000, y = Count, fill = Sample, color = Sample)) + opts(title = "Distribution") + geom_bar(stat = "identity") + facet_grid(Sample ~ Chr, space="free") + xlab(" (in Gbp)") + ylab("# reads") + scale_fill_manual(values = c("red")) + scale_color_manual(values = c("red")) + opts(legend.position = "none", panel.grid.major = theme_blank(), panel.grid.minor = theme_blank(), panel.background = theme_blank()) + theme(text=element_text(family="Arial", size=12)) dev.off()