@@ -148,19 +148,19 @@ cmp_traits=function(v,my_trait1,my_trait2,my_trait3){
148148 category = c(my_trait1 ,my_trait2 ,my_trait3 ),
149149 fill = c(" blue" ," yellow" ," red" ),
150150 lty = " blank" ,
151- cex = 2 ,
152- cat.cex = 2 ,
153- cat.dist = - .5 ,
151+ cex = 1.5 ,
152+ cat.cex = 1.5 ,
153+ cat.dist = 0 ,
154154 )
155155 }else {
156156 par(oma = c(0 ,20 ,0 ,20 ))
157157 draw.pairwise.venn(area1 = area1 , area2 = area2 ,cross.area = cross ,
158158 category = c(my_trait1 ,my_trait2 ),
159159 fill = c(" blue" ," red" ),
160160 lty = " blank" ,
161- cex = 2 ,
162- cat.cex = 2 ,
163- cat.dist = - .5 ,
161+ cex = 1.5 ,
162+ cat.cex = 1.5 ,
163+ cat.dist = 0 ,
164164 ext.line.lwd = 2 ,
165165 ext.line.lty = " dashed" )
166166 }
@@ -354,7 +354,7 @@ make_corr=function(v,my_trait,output){
354354 m3 = - log2(m3 )
355355 m3 [m3 > 10 ]= 10
356356 par(oma = c(0 ,20 ,0 ,20 ))
357- plot(m_arr_1 ,m_arr_2 ,cex = m3 ,pch = 20 ,col = my_col )
357+ plot(m_arr_1 ,m_arr_2 ,cex = m3 ,pch = 20 ,col = my_col , xlab = " Amount of trait-correlated genes in module " , ylab = " Amount of genes in module " , cex.lab = 1.5 )
358358 text(m_arr_1 ,m_arr_2 ,u_m ,cex = 2.5 )
359359
360360 print(m_arr_1 )
@@ -381,7 +381,7 @@ make_corr=function(v,my_trait,output){
381381
382382 output $ plot2 = renderPlot({
383383 par(oma = c(0 ,20 ,0 ,20 ))
384- barplot(c(L [[1 ]],L [[2 ]],L [[3 ]]),col = c(" green" ," #ff000044" ," #ff0000ff" ),names = c(" all genes" ," sign (p<0.05)" ," sign (p<0.001)" ))
384+ barplot(c(L [[1 ]],L [[2 ]],L [[3 ]]),col = c(" green" ," #ff000044" ," #ff0000ff" ),names = c(" all genes" ," sign (p<0.05)" ," sign (p<0.001)" ), ylab = " Amount of genes (#) " , cex.lab = 1.5 , cex.names = 2 )
385385 })
386386 plot(df [,1 ],df [,2 ],pch = 20 ,xlim = c(- 1 ,1 ),cex = my_size ,xlab = " correlation coefficient (r)" ,ylim = c(0 ,1 ),ylab = " p.value" ,main = my_trait )
387387 abline(h = 0.05 ,lty = 3 )
0 commit comments