changeset 14:bd1c3f88daa9 draft

Uploaded
author moheydarian
date Tue, 11 Apr 2017 16:43:35 -0400
parents 9673586abd7a
children 19546f3ef70a
files ggplot_histogram.xml
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ggplot_histogram.xml	Sun Mar 12 20:37:03 2017 -0400
+++ b/ggplot_histogram.xml	Tue Apr 11 16:43:35 2017 -0400
@@ -1,4 +1,4 @@
-<tool id="ggplot_histogram" name="Histogram w ggplot2" version="0.1.2">
+<tool id="ggplot_histogram" name="Histogram w ggplot2" version="0.1.3">
     <requirements>
         <requirement type="package">r-getopt</requirement>
         <requirement type="package">r-ggplot2</requirement>
@@ -9,7 +9,7 @@
     </stdio>
     <command><![CDATA[
         Rscript ${__tool_directory__}/ggplotscripthistogram.R --input "$input1" --title "$title" 
-        --xlab "$xlab" --ylab "$ylab" --transform "$transformation.transform" --scaling "$scaling.Plot_scaling" 
+        --xlab "$xlab" --ylab "$ylab" --transform "$transformation.transform" --scaling "$scaling.Plot_scaling" --density "$distribution.density"
         --colorscheme "$coloring.colorscheme" --dim "$dimensions.plotdim" --facet "$group.facet" 
         --size "$size" --binwidth "$binwidth" --legend "$showlegend.legend" --output "Rplot.pdf"
         #if str( $coloring.colorscheme ) == "Defined":
@@ -57,6 +57,12 @@
               <option value="log10plus1">Log10(value+1) transform my data</option>
             </param>
         </conditional>
+        <conditional name="distribution">
+            <param name="density" type="select" label="Advanced - plot counts or density">
+              <option value="counts">Plot counts on the y-axis</option>
+              <option value="density">Plot frequency on the y-axis</option>
+            </param>
+        </conditional>
         <conditional name="group">
             <param name="facet" type="select" label="Advanced - faceting">
               <option value="none">Plot my groups on one plot</option>