Mercurial > repos > moheydarian > ggplot_histogram
changeset 9:90be6d1315a4 draft
Uploaded
| author | moheydarian |
|---|---|
| date | Sun, 12 Mar 2017 20:04:14 -0400 |
| parents | a5969083902c |
| children | 3372bc887b6d |
| files | ggplotscripthistogram.R |
| diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ggplotscripthistogram.R Sun Mar 12 20:01:02 2017 -0400 +++ b/ggplotscripthistogram.R Sun Mar 12 20:04:14 2017 -0400 @@ -58,7 +58,12 @@ integrated <- read.csv(options$input,sep='\t',header=TRUE) input <- melt(integrated) -gg_legend = show.legend=options$legend +#Show/hide legend +if(options$legend == "TRUE"){ + gg_legend = NULL +} else {options$legend == "FALSE" + gg_legend = theme(legend.position="none") +} #Choose between automatically scaled x and y axis or user defined if(options$scaling == "Automatic"){
