Skip to content

Instantly share code, notes, and snippets.

@readbio
Created November 5, 2015 01:49
Show Gist options
  • Save readbio/f6e49abc6abbb492991c to your computer and use it in GitHub Desktop.
Save readbio/f6e49abc6abbb492991c to your computer and use it in GitHub Desktop.
library(ggplot2)
cc<-read.csv("density_plot.csv",header=T)
diff<-cc[,3]-cc[,2]
p<-ggplot()+geom_density(aes(diff),colour="royalblue", fill="royalblue",alpha=.3)+geom_vline(xintercept=0, linetype="dashed")+xlab("mutant minus WT");ggsave("density_plot.pdf", p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment