library(gt)
dot_bar_tab <- mtcars %>%
head() %>%
dplyr::mutate(cars = sapply(strsplit(rownames(.)," "), `[`, 1)) %>%
dplyr::select(cars, mpg, disp) %>%
gt() %>%
gt_plt_dot(disp, cars) %>%
cols_width(cars ~ px(125))
Rather than a palette that assigns the colors in order, can the color be made to reflect the value? (the way it can in ggplot for example )