Skip to content

Instantly share code, notes, and snippets.

@simecek
Last active December 31, 2015 16:48
Show Gist options
  • Select an option

  • Save simecek/6f8d41a6d0c71bebbe12 to your computer and use it in GitHub Desktop.

Select an option

Save simecek/6f8d41a6d0c71bebbe12 to your computer and use it in GitHub Desktop.
Ggplot2 scatterplot
# 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()
@quantkid
Copy link
Copy Markdown

dropbox link is dead, please double check

@davemcg
Copy link
Copy Markdown

davemcg commented Dec 31, 2015

Dropbox link is still dead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment