diff mutation_analysis.r @ 47:099cc1254f74 draft

Uploaded
author davidvanzessen
date Mon, 09 Nov 2015 07:21:09 -0500
parents 9afd8430de2c
children 5c6b9e99d576
line wrap: on
line diff
--- a/mutation_analysis.r	Thu Nov 05 10:16:32 2015 -0500
+++ b/mutation_analysis.r	Mon Nov 09 07:21:09 2015 -0500
@@ -358,7 +358,7 @@
 dat$percentage_mutations = round(dat$VRegionMutations / dat$VRegionNucleotides * 100, 2)
 
 p = ggplot(dat, aes(best_match, percentage_mutations))
-p = p + geom_boxplot(aes(middle=mean(percentage_mutations)), alpha=0.1, outlier.shape = NA) + geom_point(aes(colour=best_match), position="jitter")
+p = p + geom_point(aes(colour=best_match), position="jitter") + geom_boxplot(aes(middle=mean(percentage_mutations)), alpha=0.1, outlier.shape = NA)
 p = p + xlab("Subclass") + ylab("Frequency") + ggtitle("Frequency scatter plot")
 write.table(dat[,c("Sequence.ID", "best_match", "VRegionMutations", "VRegionNucleotides", "percentage_mutations")], "scatter.txt", sep="\t",quote=F,row.names=F,col.names=T)