| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -16,9 +16,13 @@ ggcorrplot<-function(df, var, color="#FFFFFF00", stat="signif"){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  order<- mcor %>% as.data.frame() %>% add_column(Var1=rownames(mcor),.before=1) %>% clustsort | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  ggplot(df, aes(Var1, Var2, fill=Value))+ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  ggplot(df, aes(Var1, Var2))+ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    scale_x_discrete(limits=order$x)+ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    scale_y_discrete(limits=order$y)+ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    theme_heatmap(line.color=color)+ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    geom_text(data=df.pval, fill="#FFFFF00",aes(label=Value)) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    geom_tile(aes(fill=Value), color=color)+ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    geom_text(data=df.pval, aes(label=Value))+ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    scale_fill_gradientn(colors=col2(200))+ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    theme(axis.text.x = element_text(angle = 90, hjust = 1, vjust=0.5), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        panel.background = element_blank(), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        axis.ticks = element_blank()) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} |