0

I have this table

library(carData)

View(Salaries)

table(Salaries$rank,Salaries$discipline)


And I want to color the cells from the highest to the lowest and then be able to export the coloured table into excel. appreciate the help.

Dan Chaltiel
  • 7,811
  • 5
  • 47
  • 92
Anas116
  • 797
  • 2
  • 9
  • What have you tried so far? What colours to apply? What are the programming problems? Have you tried with package `openxlsx`? – Peter Oct 21 '22 at 12:19
  • Green for the highest and degrading to red for the lowest - no I haven't tried the package – Anas116 Oct 21 '22 at 12:22

0 Answers0