stat231-s23 / blog1-eco-friends

Cora Spelke, Sophia Price, Wendy Espinosa
0 stars 0 forks source link

@katcor #3

Open SophPrice opened 1 year ago

SophPrice commented 1 year ago

Changing the column header color, current code changes all the column values to the color:

column_spec(1, color = "#F8766D")

katcorr commented 1 year ago

@SophPrice

Found it quickly while waiting for 3MT to start :)

There is an option in the column_spec function:

include_thead: T/F. A HTML only feature to contoll whether the header row will be manipulated. Default is FALSE.

If you set it to TRUE, it should also change the color of the column header, e.g.:

column_spec(1, color = "pink", include_thead = TRUE)