Skip to content

Instantly share code, notes, and snippets.

@michaelbarton
Created January 14, 2010 21:56
Show Gist options
  • Save michaelbarton/277547 to your computer and use it in GitHub Desktop.
Save michaelbarton/277547 to your computer and use it in GitHub Desktop.
read_per_genome n50
800000 218474
400000 663882
266666 598730
200000 663862
160000 360019
library(ggplot2)
data <- read.csv("n50.csv")
plot <- ggplot(data, aes(x=read_per_genome/1000,y=n50/1000)) +
geom_line() +
scale_x_continuous("Reads per 6.9 MB genome (000s)") +
scale_y_continuous("N50 contig size (KBp)")
postscript("out/n50.eps",width=10,height=6,onefile=FALSE,horizontal=FALSE, paper = "special",colormodel="rgb")
print(plot)
graphics.off()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment