library(ggplot2)
newdata = read.csv('/usr/share/data/classfiles/readlengths3.txt', sep=' ')
head(newdata)
readlength <int> | SampleID <fctr> | |||
---|---|---|---|---|
1 | 101 | GC100B | ||
2 | 101 | GC100B | ||
3 | 101 | GC100B | ||
4 | 101 | GC100B | ||
5 | 101 | GC100B | ||
6 | 101 | GC100B |
#scatterplot SampleID vs. Age
ggplot(data=newdata)+
geom_boxplot(aes(x=SampleID, y=readlength))