Created
January 8, 2016 15:56
-
-
Save stephenturner/ae4958d84198017e6340 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Load packages | |
| library(dplyr) | |
| library(ggplot2) | |
| # Read data from the web | |
| url = "https://gist.githubusercontent.com/stephenturner/806e31fce55a8b7175af/raw/1a507c4c3f9f1baaa3a69187223ff3d3050628d4/results.txt" | |
| results = read.table(url, header=TRUE) | |
| results = mutate(results, sig=ifelse(results$padj<0.05, "FDR<0.05", "Not Sig")) | |
| p = ggplot(results, aes(log2FoldChange, -log10(pvalue))) + | |
| geom_point(aes(col=sig)) + | |
| scale_color_manual(values=c("red", "black")) | |
| p | |
| p+geom_text(data=filter(results, padj<0.05), aes(label=Gene)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment