diff ggplotscripthistogram.R @ 24:b9118a9b5109 draft

Uploaded
author moheydarian
date Tue, 11 Apr 2017 18:22:45 -0400
parents eeff8405f1ac
children b4d1be4880da
line wrap: on
line diff
--- a/ggplotscripthistogram.R	Tue Apr 11 18:17:16 2017 -0400
+++ b/ggplotscripthistogram.R	Tue Apr 11 18:22:45 2017 -0400
@@ -68,14 +68,16 @@
 
 #density 
 if(options$density == "counts"){
-    gg_density = ggplot(input,aes(value ,color=variable))
+    gg_density = ggplot(input,aes(value, color=variable))
     gg_freq = NULL
 } else if(options$density == "ndensity"){
-    gg_density = ggplot(input,aes(value, ..ncount..,color=variable))
+    gg_density = ggplot(input,aes(value, ..ncount.., color=variable))
     gg_freq = NULL
 } else if(options$density == "freq"){
-    gg_density = ggplot(input,aes(value,color=variable))
+    gg_density = ggplot(input,aes(value, color=variable))
     gg_freq = aes(y=..count../sum(..count..))
+} else {
+  
 }
 
 #Choose between automatically scaled x and y axis or user defined