| set_consort_defaults | R Documentation |
Modify the default graphical parameters and other settings for consort diagrams.
Any parameter set to NULL (the default) will remain unchanged.
set_consort_defaults(
arrow_gp = NULL,
txt_gp = NULL,
box_gp = NULL,
label_txt_gp = NULL,
label_box_gp = NULL,
arrow_length = NULL,
arrow_type = NULL,
pad_u = NULL,
bullet = NULL,
parse_markup = NULL
)
get_consort_defaults()
init_consort_defaults()
## S3 method for class 'consort_defaults'
print(x, ...)
arrow_gp |
A |
txt_gp |
A |
box_gp |
A |
label_txt_gp |
A |
label_box_gp |
A |
arrow_length |
Numeric, length of the arrowhead in inches. |
arrow_type |
Character, arrow type: |
pad_u |
Numeric, padding between nodes. |
bullet |
Character, bullet character for side box items. |
parse_markup |
Logical, whether to parse lightweight markup syntax
( |
x |
A |
... |
Not used. |
Invisibly returns the previous defaults (a consort_defaults object).
A consort_defaults object containing all current default settings.
# Change text color and box fill
old <- set_consort_defaults(
txt_gp = grid::gpar(col = "navy", cex = 0.9),
box_gp = grid::gpar(fill = "#F0F0F0")
)
# View current defaults
get_consort_defaults()
# Restore previous defaults
set_consort_defaults(
txt_gp = old$txt_gp,
box_gp = old$box_gp
)
get_consort_defaults()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.