Skip to content

Commit

Permalink
Generalized plots title
Browse files Browse the repository at this point in the history
  • Loading branch information
marieBvr committed Jan 14, 2021
1 parent f61a132 commit d83c814
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
*/.DS_Store
result/*
2 changes: 1 addition & 1 deletion Rscript/Distance_counting.r
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ distance = c(rep("0-0.5kbp" , 2), rep("0.5-1kbp" , 2), rep("1-2kbp", 2), rep("2k
strand = rep(c("+","-"),4)
value_down = c(c1[2],c9[2],c2[2],c10[2],c3[2],c11[2],c4[2],c12[2])
data = data.frame(distance,strand,value_down)
plot2 = ggplot(data, aes(fill=strand, y=value_down, x=distance )) + geom_bar(position="dodge", stat="identity") + ggtitle("Mandshurica") + ylab("number of LTR") + xlab("distance to the gene") + theme(plot.title = element_text(hjust = 0.5))
plot2 = ggplot(data, aes(fill=strand, y=value_down, x=distance )) + geom_bar(position="dodge", stat="identity") + ggtitle("Number of LTR with an adjacent downstream gene") + ylab("number of LTR") + xlab("distance to the gene") + theme(plot.title = element_text(hjust = 0.5))
print(plot2)
invisible(dev.off())
print("Plots generated")
Expand Down
2 changes: 1 addition & 1 deletion Rscript/Overlap_counting.r
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ strand = rep(c("+","-"),2)
value = c(c1[1],c2[1],c1[2],c2[2])
data = data.frame(sens,value)
pdf(opt$pdf)
plot = ggplot(data, aes(fill=strand, y=value, x=sens )) + geom_bar(position="dodge", stat="identity") + ggtitle("Sibirica") + ylab("number of TE with an overlapping gene") + xlab("") + theme(plot.title = element_text(hjust = 0.5))
plot = ggplot(data, aes(fill=strand, y=value, x=sens )) + geom_bar(position="dodge", stat="identity") + ggtitle("Dataset") + ylab("Number of TE with an overlapping gene") + xlab("") + theme(plot.title = element_text(hjust = 0.5))
print(plot)
invisible(dev.off())
print("INFO - Plot created")
Expand Down

0 comments on commit d83c814

Please sign in to comment.