dm_palette: Datamodel color schema

Description Usage Arguments Examples

View source: R/graph.R

Description

Manage color schema for data model diagrams

Usage

1
2
3
4
5
6
7
8
9
dm_palette(line_color = NULL, header_bgcolor, header_font, bgcolor)

dm_color_scheme(...)

dm_add_colors(color_scheme)

dm_get_color_scheme()

dm_set_color_scheme(color_scheme)

Arguments

line_color

Rectangle color

header_bgcolor

Table header background color

header_font

Table header font color

bgcolor

Table background color

...

Palettes for color schema

color_scheme

New colors created with dm_color_scheme

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
col_scheme <-
  dm_color_scheme(
    dm_palette(
      line_color = "#787878",
      header_bgcolor = "#A5A5A5",
      header_font = "#FFFFFF",
      bgcolor = "#E4E4E4"
    ),
    dm_palette(
      line_color = "#41719C",
      header_bgcolor = "#5B9BD5",
      header_font = "#FFFFFF",
      bgcolor = "#D6E1F1"
    ),
    dm_palette(
      line_color = "#BC8C00",
      header_bgcolor = "#FFC000",
      header_font = "#FFFFFF",
      bgcolor = "#FFEAD0"
    )
  )

bergant/datamodelr documentation built on March 6, 2021, 5:47 a.m.