Creates latex tables with shading for inclusion in latex docs.

# S4 method for numeric
shade(object, breaks = c(-0.1, 50, 60, 70, 80, 90, 100),
  shades = c("\\cellcolor{gray100}", "\\cellcolor{gray90}",
  "\\cellcolor{gray80}", "\\cellcolor{gray70}", "\\cellcolor{gray60}",
  "\\cellcolor{gray50}"), pct = "\\%", ...)

Arguments

object

an object of class vector,data.frame,...

breaks

vector of breaks

shades

vector of colours for shading

pct

adds percent sign

...

other arguments