Return a style defined in a theme

get_colorDF_theme(theme)

Arguments

theme

name

Value

A list with the definitions of style

Examples

get_colorDF_theme("bw")
#> $description
#> [1] "Black and white only. Suitable for black on white terminals"
#> 
#> $terminal
#> [1] "light"
#> 
#> $sep
#> [1] "│"
#> 
#> $id
#> [1] "bw"
#> 
#> $digits
#> [1] 2
#> 
#> $fg_na
#> [1] "grey20"
#> 
#> $highlight
#> $highlight$bg
#> [1] "grey50"
#> 
#> 
#> $col.names
#> $col.names$bg
#> [1] "black"
#> 
#> $col.names$fg
#> [1] "white"
#> 
#> $col.names$decoration
#> [1] "bold"
#> 
#> $col.names$align
#> [1] "center"
#> 
#> 
#> $row.names
#> $row.names$decoration
#> [1] "italic"
#> 
#> $row.names$fg
#> [1] "grey"
#> 
#> 
#> $interleave
#> $interleave$bg
#> [1] "grey94"
#> 
#> $interleave$grey
#> [1] TRUE
#> 
#> 
#> $col.types
#> NULL
#> 
#> $autoformat
#> [1] TRUE
#> 
#> $type.styles
#> $type.styles$integer
#> $type.styles$integer$is.numeric
#> [1] TRUE
#> 
#> $type.styles$integer$align
#> [1] "right"
#> 
#> 
#> $type.styles$character
#> $type.styles$character$decoration
#> [1] "italic"
#> 
#> $type.styles$character$align
#> [1] "left"
#> 
#> 
#> $type.styles$numeric
#> $type.styles$numeric$is.numeric
#> [1] TRUE
#> 
#> $type.styles$numeric$align
#> [1] "right"
#> 
#> 
#> $type.styles$logical
#> $type.styles$logical$fg_true
#> [1] "#000000"
#> 
#> $type.styles$logical$fg_false
#> [1] "#333333"
#> 
#> $type.styles$logical$align
#> [1] "left"
#> 
#> 
#> $type.styles$factor
#> $type.styles$factor$is.numeric
#> [1] FALSE
#> 
#> $type.styles$factor$align
#> [1] "left"
#> 
#> 
#> $type.styles$identifier
#> $type.styles$identifier$decoration
#> [1] "bold"
#> 
#> $type.styles$identifier$align
#> [1] "right"
#> 
#> 
#> $type.styles$match
#> $type.styles$match$fg_match
#> [1] "#000000"
#> 
#> $type.styles$match$fg
#> [1] "grey"
#> 
#> 
#> $type.styles$pval
#> $type.styles$pval$fg_sign
#> [1] "#000000"
#> 
#> $type.styles$pval$fg
#> [1] "grey"
#> 
#> $type.styles$pval$sign.thr
#> [1] 0.05
#> 
#> $type.styles$pval$is.pval
#> [1] TRUE
#> 
#> 
#> $type.styles$default
#> $type.styles$default$align
#> [1] "left"
#> 
#> 
#> 

## use it to change the style of a colorDF
foo <- colorDF(mtcars)
df_style(foo) <- get_colorDF_theme("wb")
## Slightly modify the style
df_style(foo)$type.styles$pval$fg_sign <- "red"