comparison ggplotscripthistogram.R @ 18:e4b2d12f4691 draft

Uploaded
author moheydarian
date Tue, 11 Apr 2017 17:17:38 -0400
parents 064d7ad9968d
children b212836e738d
comparison
equal deleted inserted replaced
17:064d7ad9968d 18:e4b2d12f4691
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, ..ncount..,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"){