Open davidhodge931 opened 2 years ago
delete warning add args add param doc
if (is.logical(y_var_vctr)) { data <- data %>% dplyr::mutate(dplyr::across(!!y_var, ~factor(.x, levels = c("TRUE", "FALSE"))))
y_var_vctr <- dplyr::pull(data, !!y_var)
}
if (is.character(y_var_vctr) | is.factor(y_var_vctr)) { if (y_rev == FALSE) { data <- data %>% dplyr::mutate(dplyr::across(!!y_var, ~forcats::fct_rev(.x))) }
y_var_vctr <- dplyr::pull(data, !!y_var)
}
Then copy and paste long x/y scale code
add *_na_rm