Mercurial > repos > davidvanzessen > mutation_analysis
diff aa_histogram.r @ 82:564c4f6da203 draft
Uploaded
author | davidvanzessen |
---|---|
date | Tue, 24 May 2016 03:52:14 -0400 |
parents | 67a9ddf6a8f5 |
children | e6bc976760d4 |
line wrap: on
line diff
--- a/aa_histogram.r Tue May 17 04:17:38 2016 -0400 +++ b/aa_histogram.r Tue May 24 03:52:14 2016 -0400 @@ -34,7 +34,7 @@ print(paste("dat_dt", nrow(dat_dt))) m = ggplot(dat_dt, aes(x=i, y=freq)) + theme(axis.text.x = element_text(angle = 90, hjust = 1)) -m = m + geom_histogram(stat="identity", colour = "black", fill = "darkgrey", alpha=0.8) + scale_x_continuous(breaks=1:length(dat_freq), labels=1:length(dat_freq)) +m = m + geom_bar(stat="identity", colour = "black", fill = "darkgrey", alpha=0.8) + scale_x_continuous(breaks=1:length(dat_freq), labels=1:length(dat_freq)) m = m + annotate("segment", x = 0.5, y = -0.05, xend=26.5, yend=-0.05, colour="darkgreen", size=1) + annotate("text", x = 13, y = -0.1, label="FR1") m = m + annotate("segment", x = 26.5, y = -0.07, xend=38.5, yend=-0.07, colour="darkblue", size=1) + annotate("text", x = 32.5, y = -0.15, label="CDR1") m = m + annotate("segment", x = 38.5, y = -0.05, xend=55.5, yend=-0.05, colour="darkgreen", size=1) + annotate("text", x = 47, y = -0.1, label="FR2")