We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NA
gt_plt_conf_int()
Using the example from ?gt_plt_conf_int with NA values added.
?gt_plt_conf_int
library(gtExtras) packageVersion("gtExtras") #> [1] '0.4.0' dplyr::tibble( mean = c(12, 10, NA), ci1 = c(8, 5, NA), ci2 = c(16, 15, NA), ci_plot = c(12, 10, NA) ) %>% gt::gt() %>% gt_plt_conf_int( ci_plot, c(ci1, ci2), palette = c("red", "lightgrey", "black", "red") ) #> Error in if (zero_range(range)) zero_width else diff(range): missing value where TRUE/FALSE needed # might need to wrap with !isFALSE scales::zero_range(range(NA)) #> [1] NA
Created on 2022-06-08 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered:
Thanks for report/reprex @jmbarbone !
I would recommend omitting NA values (ie na.omit()) for now but I have a fix in local dev version and am doing more testing.
na.omit()
The function has a min/max call and adding na.rm=TRUE solves for this problem.
na.rm=TRUE
Sorry, something went wrong.
935027f
gt_plt_dist
No branches or pull requests
Using the example from
?gt_plt_conf_int
withNA
values added.Created on 2022-06-08 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: