Skip to content
Snippets Groups Projects
Commit 450e0fbd authored by vladijouan's avatar vladijouan
Browse files

Add new file

parent 932b1256
No related branches found
No related tags found
No related merge requests found
require("ggplot2")
peaks=read.table("peak_density.txt", header=T)
peaks$Distance_to_gene_start = factor(peaks$Distance_to_gene_start, levels=c("0-1kbp","1-5kbp","5-10kbp","10-50kbp","50-100kbp"))
png("Peak_density.png", width=10, height=8, unit="in", res=300)
ggplot(data=peaks, aes(x=Distance_to_gene_start, y=Peak_density_per_kbp, fill=Direction)) + geom_bar(stat="identity", position=position_dodge()) + facet_grid(Species ~ .) + xlab ("Distance to gene start") + ylab("Peak density per kbp")
dev.off()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment