getColorPaletteTable | R Documentation |
This function gets the color palettes for the tables specified as global options.
getColorPaletteTable(style = c("report", "presentation"))
style |
String with style of report. Either 'report' or 'presentation'. By default, the style is 'report'. |
By default, the function returns the palette of the package. The user can specify a custom palette by setting the global options.
A named vector with hex colors.
# report style (the default)
getColorPaletteTable()
# presentation style
getColorPaletteTable(style = "presentation")
# custom palette
customColorTable <- c('header' = "#FFFFFF",'headerBackground' = "#3F4788FF",
'body' = "#000000", 'bodyBackground1' = "#D9D9D9", 'bodyBackground2' = "#D9D9D9",
'footer' = "#000000", 'footerBackground' = "#FFFFFF",'line' = "#FFFFFF")
options(inTextSummaryTable.colors.table.presentation = customColorTable)
getColorPaletteTable("presentation")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.