Last active
December 31, 2015 16:48
-
-
Save simecek/6f8d41a6d0c71bebbe12 to your computer and use it in GitHub Desktop.
Ggplot2 scatterplot
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 dataset | |
| dataset <- read.csv("http://dl.dropboxusercontent.com/u/232839/DO_liver_variability_sex.csv", as.is=TRUE) | |
| head(dataset) | |
| # make plot | |
| library(ggplot2) | |
| ggplot(aes(y=protein.Sex, x=mrna.Sex), data=dataset) + | |
| geom_point(alpha=0.2, size=I(5)) + | |
| geom_smooth(method=loess) + | |
| ggtitle("Variability Explained by Sex") + theme_bw() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dropbox link is dead, please double check