comparison pipe-t.R @ 14:3168db2e0ff5 draft

planemo upload for repository https://github.com/igg-molecular-biology-lab/pipe-t.git commit 4e1ae25e30206be75710403c7500980ddb474beb
author davidecangelosi
date Thu, 16 May 2019 11:20:22 -0400
parents 969d0bbbf5a9
children 5e8bf316343d
comparison
equal deleted inserted replaced
13:969d0bbbf5a9 14:3168db2e0ff5
793 gm<-na.omit(gm) 793 gm<-na.omit(gm)
794 794
795 PY = ecdf(gm) 795 PY = ecdf(gm)
796 796
797 plot_colors <- c(rgb(r=0.0,g=0.0,b=0.9), "red", "forestgreen",rgb(r=0.0,g=0.0,b=0.0),rgb(r=0.5,g=0.0,b=0.3),rgb(r=0.0,g=0.4,b=0.4)) 797 plot_colors <- c(rgb(r=0.0,g=0.0,b=0.9), "red", "forestgreen",rgb(r=0.0,g=0.0,b=0.0),rgb(r=0.5,g=0.0,b=0.3),rgb(r=0.0,g=0.4,b=0.4))
798 798 par(mar = c(8,8,8,8))
799 plot(P,cex.lab=3, cex.axis = 2,col=plot_colors[1],xlim=c(0.0,600), mar = c(8,8,8,8), ylim=c(0.0,1),xaxp = c(0.0, 600, 6),yaxp = c(0.0, 1, 10), cex=1.3, lwd=5, main=paste("p-value=", formatC(ks.test(vec,gm)$p.value, format = "e", digits = 2)),xlab="CV(%)",ylab="Empirical Cumulative Distribution") 799 plot(P,cex.lab=3, cex.axis = 2,col=plot_colors[1],xlim=c(0.0,600), ylim=c(0.0,1),xaxp = c(0.0, 600, 6),yaxp = c(0.0, 1, 10), cex=1.3, lwd=5, main=paste("p-value=", formatC(ks.test(vec,gm)$p.value, format = "e", digits = 2)),xlab="CV(%)",ylab="Empirical Cumulative Distribution")
800 lines(PY, lwd=5, col=plot_colors[6],cex=1.3) 800 lines(PY, lwd=5, col=plot_colors[6],cex=1.3)
801 legend("bottomright", c("not normalized", "normalized"), cex=1.3, col=c(plot_colors[1],plot_colors[6]), lwd=c(5,5)); 801 legend("bottomright", c("not normalized", "normalized"), cex=1.3, col=c(plot_colors[1],plot_colors[6]), lwd=c(5,5));
802 dev.off() 802 dev.off()
803 803
804 #Two-sample Kolmogorov-Smirnov 804 #Two-sample Kolmogorov-Smirnov