Mercurial > repos > moheydarian > ggplot_histogram
comparison ggplotscripthistogram.R @ 17:064d7ad9968d draft
Uploaded
| author | moheydarian |
|---|---|
| date | Tue, 11 Apr 2017 17:00:38 -0400 |
| parents | 9577cd390ee6 |
| children | e4b2d12f4691 |
comparison
equal
deleted
inserted
replaced
| 16:9577cd390ee6 | 17:064d7ad9968d |
|---|---|
| 69 #density | 69 #density |
| 70 if(options$density == "counts"){ | 70 if(options$density == "counts"){ |
| 71 gg_density = ggplot(input,aes(value ,color=variable)) | 71 gg_density = ggplot(input,aes(value ,color=variable)) |
| 72 | 72 |
| 73 } else { | 73 } else { |
| 74 gg_density = ggplot(input,aes(value, ...density...,color=variable)) | 74 gg_density = ggplot(input,aes(value, ..density..,color=variable)) |
| 75 | 75 |
| 76 } | 76 } |
| 77 | 77 |
| 78 #Choose between automatically scaled x and y axis or user defined | 78 #Choose between automatically scaled x and y axis or user defined |
| 79 if(options$scaling == "Automatic"){ | 79 if(options$scaling == "Automatic"){ |
