-
Notifications
You must be signed in to change notification settings - Fork 218
Closed
Labels
Description
Prework
- [*] Read and agree to the code of conduct and contributing guidelines.
- [*] If there is already a relevant issue, whether open or closed, comment on the existing thread instead of posting a new issue.
- [*] For any problems you identify, a minimal reproducible example so the maintainer can troubleshoot. A reproducible example is:
- [*] Runnable: post enough R code and data so any onlooker can create the error on their own computer.
- [*] Minimal: reduce runtime wherever possible and remove complicated details that are irrelevant to the issue at hand.
- [*] Readable: format your code according to the tidyverse style guide.
Question
What would you like to know?
How do I color other columns based on the value of another column? The issue is described in #1119 but I could not find a description of how to do that and I could not find it in the documentation.
Below is a how it should work
mtcars %>%
gt() %>%
data_color(
# Help here
# color **disp and hp** columns where __cyl__ > 4
)
Thank you in advance.