# HG changeset patch # User moheydarian # Date 1491949365 14400 # Node ID b9118a9b5109870c93785d496753d99c0d25882f # Parent eeff8405f1ac81a210f40b803a5c887a83e7899f Uploaded diff -r eeff8405f1ac -r b9118a9b5109 ggplotscripthistogram.R --- 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