changeset 20:79e00e063a40 draft

Uploaded
author greg
date Fri, 23 Jun 2017 15:00:42 -0400
parents 14f771140d45
children e6bbc7426cd1
files ks_distribution.R
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ks_distribution.R	Fri Jun 23 15:00:34 2017 -0400
+++ b/ks_distribution.R	Fri Jun 23 15:00:42 2017 -0400
@@ -7,7 +7,7 @@
     make_option(c("-k", "--kaks_input"), action="store", dest="kaks_input", help="KaKs analysis input dataset"),
     make_option(c("-n", "--num_comp"), action="store", dest="num_comp", type="integer", help="Number of significant components in the Ks distribution"),
     make_option(c("-o", "--output"), action="store", dest="output", help="Output dataset"),
-    make_option(c("-r", "--colors"), action="store", default=NA, help="List of component colors"))
+    make_option(c("-r", "--colors"), action="store", default=NA, help="List of component colors")
 )
 
 parser <- OptionParser(usage="%prog [options] file", option_list=option_list)
@@ -82,7 +82,7 @@
     barplot(nc, space=0.25, offset=0, width=0.04, xlim=c(0, max_ks), ylim=c(0, ymax), col="lightpink1", border="lightpink3")
     # Add x-axis.
     axis(1)
-    if(is.na(colors)
+    if is.na(colors)
     {
         color <- c('red', 'yellow', 'green', 'black', 'blue', 'darkorange')
     }