Closed tombishop1 closed 3 years ago
OK, a trivial reproducible example is CD166_19_xrf$Fe/CD166_19_xrf$Sc
.
A suggested fix:
CD166_19_xrf %>%
mutate(`Fe/Sc` = Fe/Sc) %>%
mutate_if(is.numeric, list(~na_if(., Inf))) %>%
pull(`Fe/Sc`)
Closed with de8090c
Sometimes ratios create
Inf
values. These need dealing with before plotting, either usingna_if(Inf)
or some clever use ofscale_x_continuous(oob = scales::oob_censor_any())
.