Specify package for "filter" function
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ ggstats_add_xy<-function(table_stat, table, xcol=NULL, group, y="max", bracket.o
|
||||
if (!is.null(exclude_group)){
|
||||
for (j in unique(pull(table_stat, all_of(exclude_group)))){
|
||||
for (dia in unique(pull(table_stat,all_of(xcol)))){
|
||||
if (table_stat %>% filter(p < 0.05) %>% filter(.data[[x]] == dia & .data[[exclude_group]] == j) %>% nrow() > 0){
|
||||
if (table_stat %>% dplyr::filter(p < 0.05) %>% dplyr::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"][[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)
|
||||
|
||||
Reference in New Issue
Block a user