Set dir! GGplot!
setwd("~/projects/R_reports")
library(ggplot2)
Get phenotypic data from panzea, genome size from Chia
#phenotypic data from panzea
system('curl -o - http://www.panzea.org/dynamic/derivative_data/traitMatrix_maize282NAM_v15-130212.txt | perl -ne \'$_=~s/<Trait>/Line/; next if $_=~m/Header/; print $_;\' > data/nam_phenos.txt')
nam<-read.table("data/nam_phenos.txt",header=T)
#genome size data taken from Table S13 from Chia:
system('curl -o - https://gist.githubusercontent.com/rossibarra/7638160/raw/05586b4856f620a2d3af1a1ee5ebf189484b14b5/genome_size > data/gsize.txt')
gsize<-read.table("data/gsize.txt",header=T)
#merge
gseed<-merge(gsize,nam,by="Line")
Plot 20 kernel weight vs. standardized genome size. Note there are multiple similar variables, but none are significantly correlated with genome size (not shown) and they vary in direction of trend! Not much exciting for volume either
ggplot(data=gseed,aes(x=GenomeSize,y=X20KernelWeight))+geom_point()+geom_smooth(method="lm")
## Warning: Removed 11 rows containing missing values (stat_smooth).
## Warning: Removed 11 rows containing missing values (geom_point).
ggplot(data=gseed,aes(x=GenomeSize,y=TotalKernelVolume))+geom_point()+geom_smooth(method="lm")
## Warning: Removed 12 rows containing missing values (stat_smooth).
## Warning: Removed 12 rows containing missing values (geom_point).