Mercurial > repos > moheydarian > ggplot_histogram
diff ggplotscripthistogram.R @ 23:eeff8405f1ac draft
Uploaded
| author | moheydarian |
|---|---|
| date | Tue, 11 Apr 2017 18:17:16 -0400 |
| parents | b212836e738d |
| children | b9118a9b5109 |
line wrap: on
line diff
--- a/ggplotscripthistogram.R Tue Apr 11 18:17:08 2017 -0400 +++ b/ggplotscripthistogram.R Tue Apr 11 18:17:16 2017 -0400 @@ -73,7 +73,7 @@ } else if(options$density == "ndensity"){ gg_density = ggplot(input,aes(value, ..ncount..,color=variable)) gg_freq = NULL -} else if(options$density == "density"){ +} else if(options$density == "freq"){ gg_density = ggplot(input,aes(value,color=variable)) gg_freq = aes(y=..count../sum(..count..)) }
