You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example contains two tables. They have the same data, but presented differently. Both tables want to color the cells (other than the first column). They compute a set of values (the same in both tables) and use that as the color domain.
Prework
Description
gt::data_color()
reuses colors across cell values.Reproducible example
This example contains two tables. They have the same data, but presented differently. Both tables want to color the cells (other than the first column). They compute a set of values (the same in both tables) and use that as the color domain.
The first table renders as:
The second table renders as:
Expected result
All cells with the same value should use the same color. No cells with a different value should share color.
These tables were produced using a similar approach with the Python Great Tables package and show better cell coloring.
Session info
End the reproducible example with a call to
sessionInfo()
in the same session (e.g.reprex(session_info = TRUE)
) and include the output.The text was updated successfully, but these errors were encountered: