| 
																	
																	
																		
																			
																		
																	
																	
																 | 
																@ -55,7 +55,7 @@ ggstats_add_xy<-function(table_stat, table, xcol=NULL, group, y="max", bracket.o | 
															
														
														
													
														
															
																 | 
																 | 
																    if (!is.null(exclude_group)){ | 
																 | 
																 | 
																    if (!is.null(exclude_group)){ | 
															
														
														
													
														
															
																 | 
																 | 
																      for (j in unique(pull(table_stat, all_of(exclude_group)))){ | 
																 | 
																 | 
																      for (j in unique(pull(table_stat, all_of(exclude_group)))){ | 
															
														
														
													
														
															
																 | 
																 | 
																        for (dia in unique(pull(table_stat,all_of(xcol)))){ | 
																 | 
																 | 
																        for (dia in unique(pull(table_stat,all_of(xcol)))){ | 
															
														
														
													
														
															
																 | 
																 | 
																          if (table_stat %>% filter(p < 0.05) %>% filter(.data[[x]] == dia & !!!syms(exclude_group) == j) %>% nrow() > 0){ | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																          if (table_stat %>% filter(p < 0.05) %>% filter(.data[[x]] == dia & .data[[exclude_group]] == j) %>% nrow() > 0){ | 
															
														
														
													
														
															
																 | 
																 | 
																            t[table_stat[,x] == dia & table_stat[,exclude_group] == j,"y.position"]<-seq(t[table_stat[,x] == dia & table_stat[,exclude_group] == j,"y.position"][[1,1]], | 
																 | 
																 | 
																            t[table_stat[,x] == dia & table_stat[,exclude_group] == j,"y.position"]<-seq(t[table_stat[,x] == dia & table_stat[,exclude_group] == j,"y.position"][[1,1]], | 
															
														
														
													
														
															
																 | 
																 | 
																                                                                                         t[table_stat[,x] == dia & table_stat[,exclude_group] == j,"y.position"][[1,1]]+diff(range(table[,value.var], na.rm = T))*bracket.inspace*(nrow(table_stat[table_stat[,x] == dia & table_stat[,exclude_group] == j,])-1), | 
																 | 
																 | 
																                                                                                         t[table_stat[,x] == dia & table_stat[,exclude_group] == j,"y.position"][[1,1]]+diff(range(table[,value.var], na.rm = T))*bracket.inspace*(nrow(table_stat[table_stat[,x] == dia & table_stat[,exclude_group] == j,])-1), | 
															
														
														
													
														
															
																 | 
																 | 
																                                                                                         by=diff(range(table[,value.var], na.rm = T))*bracket.inspace) | 
																 | 
																 | 
																                                                                                         by=diff(range(table[,value.var], na.rm = T))*bracket.inspace) | 
															
														
														
													
												
													
														
															
																| 
																	
																		
																			
																		
																	
																	
																	
																 | 
																
 |